Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polynomial Transform

Adjustable transformation of a 2D coordinate grid. The program takes a grid of points in a space with coordinates (x, y) and transforms the points to a new set of points (x', y') where both x' and y' are general polynomials of degree 3 in both x and y. The coefficients of these polynomials are presented as arrays of knobs, which can be adjusted and the corresponding effect on the transformed grid observed.

Example

Interaction

The 2 grids of knobs (which can be clicked and dragged to change their values) each represent the 16 coefficients of x' and y' respectively. The knobs are weighted so that higher powers, which tend to change faster, will have less of an effect on the shape of the grid. Pressing the '0' number key will reset all coefficients to zero. Pressing the 's' key will save an image of the grid to the local folder.

Running the code

The program uses the Processing API and requires the ControlP5 library to be installed (https://github.com/sojamo/controlp5).

About

Adjustable transformation of a 2D coordinate grid

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages