So I have two parameters: Diameter and StrokeSize. The way I want this to work is when the Diameter is at it’s maximum: 600, I want the StrokeSize to be 5, which is its maximum. Same for the minimum of the parameters.
How could this be done?
function setup()
parameter.number("Diameter",10,600,50)
parameter.number("StrokeSize",2.5,5,2.5)
end
function draw()
background(0)
strokeWidth(StrokeSize)
stroke(150,255,150,255)
noFill()
ellipse(WIDTH/2,HEIGHT/2,Diameter)
line(WIDTH/2,HEIGHT/2,WIDTH/2 + (Diameter/2 -4),HEIGHT/2)
end