processing / p5.js-editor

Deprecated desktop editor for p5.js
https://p5js.org
MIT License
338 stars 91 forks source link

Alpha Error when working with HSB #184

Closed sunwangshu closed 8 years ago

sunwangshu commented 8 years ago

When you set colorMode(HSB) and set a color like stroke(360,100,100,0.1), the fourth parameter 0.1 works well as the alpha value.

The issue is that when you try to access a value called stroke(360,100,100,0), then the color appear to have no transparency at all, which means alpha = 1, and the color appear the same as (360, 100, 100, 1).

I think normally with alpha = 0 it means there be some 100% transparency and no color at all.

lmccart commented 8 years ago

this is fixed in the latest.