HSB色空間
/** * HSB * * @author aa_debdeb * @date 2016/03/29 */ float angStep = 1.0; void setup(){ size(500, 500); noStroke(); colorMode(HSB, 360, 100, 100); } void draw(){ translate(width / 2, height / 2); for(float ang = 0; ang < 360; ang += angStep){ float rad1 = radians(ang); float rad2 = radians(ang + angStep); float s = map(mouseX, 0, width, 0, 100); float b = map(mouseY, 0, height, 0, 100); fill(ang, s, b); arc(0, 0, 1000, 1000, rad1, rad2); } }