Skip to content

Instantly share code, notes, and snippets.

View johnbabu021's full-sized avatar
๐ŸŒš
Into a multiverse

john johnbabu021

๐ŸŒš
Into a multiverse
View GitHub Profile
@johnbabu021
johnbabu021 / randomcolor.js
Created May 22, 2021 12:55 — forked from stefanocudini/randomcolor.js
html random color
function randcolor() {
function c() {
return Math.floor(Math.random()*220+36).toString(16)
}
return "#"+c()+c()+c();
}
@johnbabu021
johnbabu021 / README.md
Created December 2, 2022 10:09 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store