Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ccworld1000/cccolor
Simple and flexible color color conversion module for Raku Perl 6 , easy-to-use simple learning.
https://github.com/ccworld1000/cccolor
cccolor color color-conversion hex2rgba perl perl6 perl6-module raku rgb rgba
Last synced: about 2 months ago
JSON representation
Simple and flexible color color conversion module for Raku Perl 6 , easy-to-use simple learning.
- Host: GitHub
- URL: https://github.com/ccworld1000/cccolor
- Owner: ccworld1000
- License: gpl-2.0
- Created: 2018-11-15T00:46:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-19T14:00:35.000Z (about 6 years ago)
- Last Synced: 2024-10-11T20:43:03.363Z (2 months ago)
- Topics: cccolor, color, color-conversion, hex2rgba, perl, perl6, perl6-module, raku, rgb, rgba
- Language: Perl 6
- Homepage: https://github.com/ccworld1000/CCColor
- Size: 255 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## [CCColor](https://github.com/ccworld1000/CCColor)
Simple and flexible color color conversion module for Perl 6 ,
easy-to-use simple learning.## HEX Color (use CCColor)
![colors](https://raw.githubusercontent.com/ccworld1000/CCColor/master/doc/screenshot/colors.svg?sanitize=true)
## See test
```perl
use CCColor;my @list =
(
" #FFFEA963 ",
" #FF FE A9 63 ",
" #FF # FE # A9 # 63 ",
" #",
" #1",
" #123",
" #FFH",
" #FHF",
" #1234",
" #12345",
" #FFEE5",
" #FFEE56",
" #FFEE56A",
" #FFEE56AH",
" #FFEE56AA",
" #FFEE56AA11",
" #FFEE56AAFF11",
);for @list -> $color {
my ($r, $g, $b, $a) = hex2rgba($color);
say "$r, $g, $b, $a";
}
```Call test/test.p6
![test](https://raw.githubusercontent.com/ccworld1000/CCColor/master/doc/screenshot/test.png)
## Local installation and unloading
zef install .
zef uninstall CCColor## Network install
zef update
zef install CCColor