Skip to content

C# project for creating a color palette for a book based on the colors used by the author in the text.At the end, you'll get a PNG image with a size depending on the number of colors in the text. To use the program, please read the README.md.

Notifications You must be signed in to change notification settings

lamaks3/Text-Color-Measurement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Written in C#, cross-platform support. The program allows you to create a PNG image based on the colors found in the text from a .txt file.

How the program works: 1)extracting words from text 2)search for words by roots from a dictionary 3)creating an image where each pixel is a color that appears in the text (in order)

How to use: 1)download SkiaSharp library(write to terminal(for VS code): dotnet add package SkiaSharp) 2)specify the location of yours .txt file in line 37 (ex: string filePath = @"/Users/lamaks/Documents/CodeSpace/C#/TextReader/test_book.txt";) 3)change dictionary called "Colors" in line 12 , where ["root of color(in the language of the book)"]=SKColors.xColor (xColor - pixel color, you can find color names for SkiaSharp in the web 4)the final image will be in the root folder of the project

The program was tested on MacOS in Visual Studio Code. Made by @lamaks3. Free to use)

About

C# project for creating a color palette for a book based on the colors used by the author in the text.At the end, you'll get a PNG image with a size depending on the number of colors in the text. To use the program, please read the README.md.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages