? GGRADIENT ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

GGRADIENT

Submitted
Updated
Author
ColeslawProductions
Public Key
XRVXENQE
Min. Compat.
All
Rating
2 votes
Description A DEF block that will draw a gradient of specified size and colors. Instructions Copy the DEF blocks for GGRADIENT and MAPRANGE() into any program to use GGRADIENT as a normal command. GGRADIENT relies on MAPRANGE() to work. Syntax: GGRADIENT M,SX,SY,EX,EY,C1,C2 M: Gradient draw mode. |b00| 0=Horizontal fade, 1=Vertical fade SX, SY Start coordinates on the current GRP screen EX, EY End coordinates on the current GRP screen C1, C2 Colors to fade between in 32-bit ARGB
Categories
Keywords
3 Comment(s) SamKitsune SamKitsune If this keeps up, a more advance paint tool for SB can be made. Maybe something like make circles, advance gradient like angle and radial, polygons, and even improve on that Bezier tool to change the anchor. I wouldn't go to far, like make it more like GIMP for SB. Still, it will be better than what we have included. ColeslawProductions ColeslawProductions I thought about making an program like that since Petit Computer. Now, the DEF command makes implementing these tools seem so much easier and more elegant than before. Maybe I should start a forum meant for discussing the design of the program's design. It might just be what I need do motivate myself to get started. randomous randomous Owner Robot Hidden Easter Eggs Second Year My account is over 2 years old Website Drawing I like to draw! Hobbies This is useful! You should just create a single graphics library though so you don't have to waste all your slots.