-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|566|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Generators


 
Pakz
Created : 23 October 2017
Edited : 23 October 2017
Language : Monkey-X

Flasks, Bottles Icons

Create Bottle and/or flask like images

Page with code and Flash example.
Screenshots

Latest Update

It works by starting at the center top point and then drawing a white line downwards to the center point. At every point the left side is colored. Then the right side is mirror to the left side.
While it is drawn to the screen a shading/lighting effect is done.

The way it is coded is not that complex(I think?)

The draw function takes a r,g,b input so any color can be set.

 

Comments


Sunday, 29 October 2017, 11:45
Pakz
I created a new one that models it after a potions image I found with google images.



cromdesi.home.xs4all.nl/html5/flasksbottles2/MonkeyGame.html

I am thinking it might be something to spend more time recreating sprite items this way. The one from this link did take an hour or 2 to finish though and has a lot more code.