Skip to content

A PLAY EXPERIENCE MAKER'S WORK LOG FOR FUTURE SELF©2001 – 2023 Kyle Li 李肅綱 All Rights Reserved.

Processing Experiment

Posted on March 14, 2020March 15, 2020 by admin
https://www.instagram.com/p/B885QDjicYE/

Given this link by curious Rozi on wechat. While figuring out the next step to becoming an online learning influencer, I decided to accept the challenge and build this fun little crop-and-go interaction in Processing. At a glence, it seems the program can be realized in the following steps:

  1. Mouse Interaction: use mouse to drag out a rectular area
  2. Crop Image: obtain the pixel information of the rectangle from the original image
  3. Animation Algorithm: turn the cropped image into an animation

Mouse Interaction:
Create a recangle using the two opposite corners, one obtained from when mouse is pressed and the other from when mouse is released.

Crop Image:
Use the rectacular info created by the the mouse interaction to crop out the area in the original PImage and save it as a new PImage.

Animation Algorithm:
To keep it simple, I am going to animate 1 PImage first and after it is working in all directions, add a 2nd image to fill up the void.

Download the processing sketch here.

Posted in Experiements

Post navigation

VRoid 02
#StayTheFuckHome

Recent Posts

  • BMP – Rearrange Colormap
  • Reset Allow USB Debugging? Notification
  • 8-bit Notes
  • AT29C256 90PI
  • Super-Toys Last All Summer Long

Archives

Proudly powered by WordPress | Theme: MiniZen by Martin Stehle.