Code center > Darwinbots Program Source Code

covered up gradient.

<< < (2/3) > >>

Zelos:
how to you make a filled rectangel that is filled in vb?

PurpleYouko:
You add a shape object and set its background and/or foreground color

Zelos:
I mean by commands

PurpleYouko:
Never tried to do it that way. I don't think there is a generic fill command in the code.

Ulciscor:
It took me so long to find this out. So long being 3 hours.I'm slightly protective over what seems to be a VB secret but here you go  :lol:


--- Code: ---Line (x1,y1)-(x2,y2), RGB(X,why,Z), B
--- End code ---

That 'B' after the colour parameter makes the line turn into a rectangle somehow; no idea how or why but it does.

Also just in case, make sure you don't add any drawing functions on the onLoad() event 'cos they won't work.

[EDIT]: Curse these filters!  :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version