https://github.com/meokullu/colorizenumber
ColorizeNumber - Bodrum Papatya, visualizes numeric data into colors which creates an image.
https://github.com/meokullu/colorizenumber
color colorize colors data data-visualization visualization vizualize-data
Last synced: 22 days ago
JSON representation
ColorizeNumber - Bodrum Papatya, visualizes numeric data into colors which creates an image.
- Host: GitHub
- URL: https://github.com/meokullu/colorizenumber
- Owner: meokullu
- License: mit
- Created: 2023-08-27T15:45:25.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-26T02:02:17.000Z (over 1 year ago)
- Last Synced: 2025-10-19T19:32:27.683Z (8 months ago)
- Topics: color, colorize, colors, data, data-visualization, visualization, vizualize-data
- Language: C#
- Homepage: https://meokullu.github.io/ColorizeNumber/
- Size: 1.11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
## ColorizeNumber
[](https://www.nuget.org/packages/ColorizeNumber/) [](https://www.nuget.org/packages/ColorizeNumber/) [](https://github.com/meokullu/ColorizeNumber/blob/master/LICENSE)
ColorizeNumber - Bodrum Papatya is a project to visualize numeric data.

### Description
ColorizeNumber - Bodrum Papatya helps you to visualize numeric data.
### How to download
Release: [Latest release](https://github.com/meokullu/ColorizeNumber/releases/latest)
[Download on NuGet gallery](https://www.nuget.org/packages/ColorizeNumber/)
.NET CLI:
```
dotnet add package ColorizeNumber
```
### Example Usage
```
TestColorizeNumber()
{
// Data - 25 charachters
string dataText = "1122334455667788990012345";
// Data to Frame (25 byte length)
Frame frame = CreateFrameFromData(dataText, 5, 5, colorizeFunction: ColorizeFunc);
// Frame to Bitmap (5x5)
Bitmap bitmap = CreateBitmap(frame);
// Saving bitmap.
bitmap.Save("./ColorizeNumberTest.bmp", ImageFormat.Bmp);
// EasySaver.BitmapFile is providing saving methods for bitmap files.
// It automatically saves bitmap with specified naming formats.
// https://github.com/meokullu/EasySaver/tree/master/EasySaver.BitmapFile
// https://www.nuget.org/packages/EasySaver.BitmapFile/
// Save(Bitmap bitmap)
// SaveToFolder(Bitmap bitmap)
}
```
```
CreateFrameRandomly(int width, int height);
```
```
CreateFrameRandomly(int width, int height, RGBColor[] colorList)
```

```
CreateFrameRandomly(int width, int height)
```

### Build your own colorize function.
```
RGBColor MyColorizeFunc(byte number)
{
if (number < 5) // If number is 0, 1, 2, 3, 4 returns white color.
{
return new RGBColor(red: 255, green: 255, blue: 255);
}
else // If number is 5, 6, 7, 8, 9 returns black color.
{
return new RGBColor(red: 0, green: 0, blue: 0);
}
}
```
```
GetRandomColor();
```
```
GetRandomColor(RandomColorLimit limits)
```
> [!TIP]
> To save reporting result easily, you can use EasySaver.BitmapFile.
```
dotnet add package EasySaver.BitmapFile
```
To check listed methods, example of output visit wiki page. [ColorizeNumber Wiki](https://github.com/meokullu/ColorizeNumber/wiki/Home)
### Version History
See [Changelog](https://github.com/meokullu/ColorizeNumber/blob/master/CHANGELOG.md)
### Task list
* Create an issue or check task list: [Issues](https://github.com/meokullu/ColorizeNumber/issues)
### Licence
This repository is licensed under the "MIT" license. See [MIT license](https://github.com/meokullu/ColorizeNumber/blob/master/LICENSE).
### Authors & Contributing
If you'd like to contribute, then contribute. [contributing guide](https://github.com/meokullu/ColorizeNumber/blob/master/CONTRIBUTING.md).
[](https://github.com/meokullu/ColorizeNumber/graphs/contributors)
### Help
Twitter: Enes Okullu [@enesokullu](https://twitter.com/EnesOkullu)