enyancc / vscode-ext-color-highlight

Extension adds colored border around css/web colors in the editor
GNU General Public License v3.0
263 stars 85 forks source link

RGB with range of (0, 1) not interpreted with correct color (THREE.js) #205

Open JaeGif opened 5 months ago

JaeGif commented 5 months ago

Working with three.js and shaders, we often have normalized color codes that represent rgb where rgb(1, 1, 1) is white, rgb(0, 0, 0) is black.

When making colors using this format, the extension reads the values as x/255 and everything is represented as a deep black highlight, making it impossible to read the actual color code underneath, and not representing the true value.

Screenshot 2024-06-07 at 11 04 14 AM Screenshot 2024-06-07 at 11 05 51 AM