FBA The Creator

The True Multiplatform PC / PocketPC Opensource Development Tool - Read Only Mode - Kept only for historical purposes - Thank you all ;)
It is currently Sun Oct 24, 2021 3:39 pm

All times are UTC




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: Gradient sample
PostPosted: Sat Feb 28, 2009 9:05 am 
Offline

Joined: Sat Feb 28, 2009 8:41 am
Posts: 2
--first color
a1=0
a2=50
a3=0
--second color
b1=55
b2=255
b3=25
x1=0
y1=0
x2=240
y2=320

clear(255,255,255)
h=x2-x1-1
for i=0,h do
r=a1-(a1-b1)/h*i
g=a2-(a2-b2)/h*i
b=a3-(a3-b3)/h*i
fillrect(i,y1,i+1,y2,r,g,b)
end


Attachments:
gradient.PNG
gradient.PNG [ 6.84 KiB | Viewed 18660 times ]
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited