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


 
Pakz
Created : 21 January 2019
 
Language : Monkey2

Pixel Art Pine Tree(s)

Generate sheets of pine trees(xmas?)

Screenshots

Latest Update

I was browsing Google Images for examples of Pixel Art and noticed I would be able to recreate a certain style of pine tree.

What I coded was a triangle from bottom to top. I put the pixel data inside a integer array and while going up I increased the color(number). Then I went and smeared a line at the edges of the colors into a random downward direction while making sure not to overwrite (0) pixels.
Then I created two routines for each side of the pines and also smeared them to the outsides in a random directions.
Then I isolated the edges and put blackish pixels there.

There was some tweaking involved.

The results are not that bad for my doing.

I had not prepared or was able to figure out how to do the tree stumps yet.

 

Comments