SkipAlpha - nonkit/SmallWikiPad GitHub Wiki

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