yab | yet another Basic for HAIKU
setting RECT color - Printable Version

+- yab | yet another Basic for HAIKU (https://yab.orgfree.com/forum)
+-- Forum: Programming in yab (https://yab.orgfree.com/forum/forumdisplay.php?fid=1)
+--- Forum: Help with programs (https://yab.orgfree.com/forum/forumdisplay.php?fid=4)
+--- Thread: setting RECT color (/showthread.php?tid=177)



setting RECT color - PurpleStudio - 09-28-2024

I have a RECT on my view. How do I set the RECT color to 184,184,184? I've tried DRAW SET, but that usually just changes global colors (BG, HighColor, LowColor). Do I use FillorStroke and what would that look like? There's no example on Besly. Thanks Smile


RE: setting RECT color - bbjimmy - 09-28-2024

#!yab

window open 100,100 to 400,400, "Example", "Example"
draw set "HighColor", 184,184,184 , "Example"
draw set IsStroke, "HighSolidFill"
draw rect 10,10, 290, 290, "Example"
sleep 7
window close "Example"


Free Web Hosting