Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-04T14:26:07.000Z (6 months ago)
- Last Synced: 2024-06-04T16:11:28.119Z (6 months ago)
- Topics: color, colorize, colors, data, data-visualization, visualization, vizualize-data
- Language: C#
- Homepage: https://meokullu.github.io/ColorizeNumber/
- Size: 1.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
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
[![ColorizeNumber](https://img.shields.io/nuget/v/ColorizeNumber.svg)](https://www.nuget.org/packages/ColorizeNumber/) [![ColorizeNumber](https://img.shields.io/nuget/dt/ColorizeNumber.svg)](https://www.nuget.org/packages/ColorizeNumber/) [![License](https://img.shields.io/github/license/meokullu/ColorizeNumber.svg)](https://github.com/meokullu/ColorizeNumber/blob/master/LICENSE)ColorizeNumber - Bodrum Papatya is a project to visualize numeric data.
![SocialPreview](https://github.com/meokullu/ColorizeNumber/assets/4971757/ba6c05fb-eb6e-452f-b6a5-55b71aa146db)
### 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)
```![2024-02-26-07-53-44-759](https://github.com/meokullu/ColorizeNumber/assets/4971757/fe66bb0b-6235-4d80-808e-66488f4999f6)
```
CreateFrameRandomly(int width, int height)
```![2024-02-26-07-54-08-927](https://github.com/meokullu/ColorizeNumber/assets/4971757/c4d12b40-bdb0-4efa-ba01-cc182242dece)
### 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).
[![Contributors](https://contrib.rocks/image?repo=meokullu/ColorizeNumber)](https://github.com/meokullu/ColorizeNumber/graphs/contributors)
### Help
Twitter: Enes Okullu [@enesokullu](https://twitter.com/EnesOkullu)