4 ms·
Nice! Just a thought, values can go beyond the valid range. For example: dividing by zero, having negative values for RGB, and negative height/widths.
by shakeel_mohamed 14y ago
Nice! Just a thought, values can go beyond the valid range. For example: dividing by zero, having negative values for RGB, and negative height/widths.
- nornagon 14y agoUnfortunately there's no type information in JS, so it's very difficult to extract range data from just the source. Just don't drag it into that range ;) PS, I'm planning to implement a color picker for strings like 'rgba(200,0,234,0.4)'