StickPlus Update


Originally the stick function (which pastes pixels algorithmically to the display window) only took one image argument and set all other pixels to zero, which made the rest of the image black otherwise.

Introducing stick plus!

Stick Plus takes 2 arguments (a foreground image to manipulate, as well as a background image) and sticks the pixels from one image on top of another. 

When in doubt, check out an example (included!):

What's happening here is that we're slinging pixels from image_2 onto variable y, smearing it and saving the result to yy, and finally slinging pixels from image_3 on top of yy. At the very end, we're revealing the result of which, which is saved to variable yyy.

Just use it like this:

myNewImage = process.stick_plus(imageToManipulate, backgroundImage, "red", "lt", 100)

I had originally meant for 'stick' to sling pixels on top of another image, but as it turns out, we actually need stick and stick plus for these separate purposes -- but this allows room for way more fun!

Files

mega_processor stick update.rar 11 MB
46 days ago

Get Image Destroyer

Buy Now$9.99 USD or more

Leave a comment

Log in with itch.io to leave a comment.