This project has moved and is read-only. For the latest updates, please go here.


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
' 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)

Other Resources

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