Hexadecimal color code for transparency
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
.
// Allan Nava snippet code | |
import 'dart:math' as math; | |
void main() { | |
var value = toBits(3039003383); | |
print(value); | |
} | |
/// | |
static double toBits(int bits) { |
// jQuery
$(document).ready(function() {
// code
})