For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Allan Nava snippet code | |
import 'dart:math' as math; | |
void main() { | |
var value = toBits(3039003383); | |
print(value); | |
} | |
/// | |
static double toBits(int bits) { |