November 8, 2012 - No Comments!

Hexadecimal to float numbers array converter

While writing After Effects scripts, I often find myself having to convert hexadecimal colors to float numbers array, eg.: #f8a908 → [0.97, 0.66, 0.03]

Since it was really painful to convert it manually and I did not happen to find a converter that would do it easily, I decided to build my own. You can see the code or just get the demo.

Published by: Sébastien Lavoie in Code
Tags: , ,