bitmap crop, loop (like css borderimage)
Posted: Mon Jun 17, 2013 8:33 am
I have so many projects... 
Right now i'd like to get a grab on a flowstone ruby expression dictionnary and browse around so i could find how to crop a bitmap
I want to use a bitmap that has 3 areas, left side, center (stretch) and right side.. To make buttons and gui parts.
It could really be useful to planify in advance to include optionnal 9 areas setup for further uses . {top left, bottom-right, center, side-left (...)}
Also, alternatively, loop instead of stretch could be useful.
Even then, it could be mixed with @cells like the /on/off/ switches that uses this code function... Could allow the animation of a button that uses that "css-borderimage-like" code... :3
Right now, that's the only code that i've got and am lacking of knowledge as i am a slow learner that works more instinctively than in any organised way (my bad)...
I could end up with some results with primitives but it'd probably be 3times too much heavy
I'd also like to know how i could make a simple rotate code like the primitive rotate view module...
Well... I'd love to have Ruby alternatives for all processes from simple multiply to text formatting and stuff
It's so hard to get informations about Flowstone's ruby or anything flowstone, synthmaker or dsprobotics 
I am really close to achieve a software synthetizer that really is /OH-MY-GOD!/ but it's getting rough so before i try to make money with it (how does it work, legally? are there online stores on which i could display? how to make secure transactions?) When i'll be able to make marketable versions, i'll buy flowstone with yearly renew enabled
Where could i study flowstone like in college or something?
Right now i'd like to get a grab on a flowstone ruby expression dictionnary and browse around so i could find how to crop a bitmap
I want to use a bitmap that has 3 areas, left side, center (stretch) and right side.. To make buttons and gui parts.
It could really be useful to planify in advance to include optionnal 9 areas setup for further uses . {top left, bottom-right, center, side-left (...)}
Also, alternatively, loop instead of stretch could be useful.
Even then, it could be mixed with @cells like the /on/off/ switches that uses this code function... Could allow the animation of a button that uses that "css-borderimage-like" code... :3
Right now, that's the only code that i've got and am lacking of knowledge as i am a slow learner that works more instinctively than in any organised way (my bad)...
Code: Select all
def draw v
v.drawBitmap @bitmap,[0,0,v.width,v.height]
end
def event i,v
redraw 0
endI could end up with some results with primitives but it'd probably be 3times too much heavy
I'd also like to know how i could make a simple rotate code like the primitive rotate view module...
Well... I'd love to have Ruby alternatives for all processes from simple multiply to text formatting and stuff
I am really close to achieve a software synthetizer that really is /OH-MY-GOD!/ but it's getting rough so before i try to make money with it (how does it work, legally? are there online stores on which i could display? how to make secure transactions?) When i'll be able to make marketable versions, i'll buy flowstone with yearly renew enabled
Where could i study flowstone like in college or something?