Hacker News new | past | comments | ask | show | jobs | submit login

I was looking for a quick way to convert RGB 0-255 to RGB float 0.0-1.0 (often used in shaders and other areas of 3D programming) just the other day. This tool doesn't currently seem to support that, would be a nice addition.



Thank you for the feedback. I have added a new "rgb-float" format in the latest release: https://github.com/sharkdp/pastel/releases/tag/v0.5.3


Awesome, thanks!


Is it not sufficient to floating-point divide the input values by 255 ?

Edit: I guess that, even as simple as it would be to implement, it still is another useful output format


Simple to implement yeah, hard for me to do in my head hence the need for a tool :-)


$ command |sed 's/$/\/255/' | bc # or similar?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: