algebra - Me = flash headache
algebra - Me = flash headache
Out of context: Reply #9
- Started
- Last post
- 10 Responses
- cuke4260
var p = mouseX;
p = Math.max(0,p)
p = Math.min(100, p)this will give you a range of 0-100
shorthand =
p = Math.min(Math.max(0,mouseX), 100);