gFelicio / colours

Colours ----- Setting the font colour according to the background colour of element, trying to maximize the contrast.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Colours

A simple JavaScript script which randomly generates a coloured box and sets a black or white font for the text displayed in it according to its luminance.

About

Colours ----- Setting the font colour according to the background colour of element, trying to maximize the contrast.


Languages

Language:JavaScript 62.7%Language:CSS 21.4%Language:HTML 16.0%