This project has moved. For the latest updates, please go here.

SkipAlpha

Use following workaround to skip alpha blending in color on browser with Silverlight environment. GraphicsWindow.GetColorFromRGB(), GraphicsWindow.GetRandomColor() GraphicsWindow.GetPixel(), GraphicsWindow.BackgroundColor, GraphicsWindow.BrushColor and GrahicsWindow.PenColor have this issue.
color = GraphicsWindow.BrushColor
SB_ColorWorkaround()
' then use color as "#rrggbb" format
Sub SB_ColorWorkaround
   ' Small Basic | Color workaround for Silverlight
   ' param color
   ' return color
   If Text.GetLength(color) = 9 Then
     color = "#" + Text.GetSubTextToEnd(color, 4)
   EndIf
EndSub

Other Resources


Last edited Jan 15, 2016 at 4:19 PM by Nonki, version 3