Created
January 27, 2016 14:59
-
-
Save claytical/5c03d2e40b3ac07b43a0 to your computer and use it in GitHub Desktop.
Circle Remap Values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(windowWidth, windowHeight); | |
} | |
function draw() { | |
background(255); | |
var x = width/2; | |
var y = height/2; | |
var circleWidth = map(mouseX, 0, width, 0, 100); | |
var circleHeight = map(mouseX, 0, width, 0, 100); | |
fill(255,0,0); | |
ellipse(x, y, circleWidth, circleHeight); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment