0 purchases
bw to rgb
Black and white to RGB #
Convert Black and White to RGB and vice versa.
Hecho en 🇵🇷 por Radamés J. Valentín Reyes
Import #
import 'package:bw_to_rgb/bw_to_rgb.dart';
copied to clipboard
Functions #
Color to Black and White #
Takes RGB as arguments and returns a number ranging from 0-255
int greyscale = rgbToBlackAndWhite(
r: 30,
g: 238,
b: 231,
);
copied to clipboard
Black and white to RGB #
Takes a grayscale number ranging from 0-255 and converts it into RGB values. The resulting color is not exact but similar to the original.
int greyscale = rgbToBlackAndWhite(
r: 30,
g: 238,
b: 231,
);
ConvertedRGB convertedRGB = blackAndWhiteToRGB(greyscale);
copied to clipboard
References #
https://makeandhack.blogspot.com/2019/12/all-possible-color-combinations.html
https://imagej.nih.gov/ij/docs/menus/image.html#:~:text=RGB%20images%20are%20converted%20to,in%20Edit%3EOptions%3EConversions.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.