{"id":26172239,"url":"https://github.com/koki-develop/v-color","last_synced_at":"2026-03-13T23:04:57.330Z","repository":{"id":271561592,"uuid":"913852170","full_name":"koki-develop/v-color","owner":"koki-develop","description":"A simple color library for V.","archived":false,"fork":false,"pushed_at":"2025-01-10T10:23:28.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T11:44:19.857Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://koki-develop.github.io/v-color/","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koki-develop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-08T13:30:08.000Z","updated_at":"2025-01-12T21:53:01.000Z","dependencies_parsed_at":"2025-01-08T14:56:31.260Z","dependency_job_id":null,"html_url":"https://github.com/koki-develop/v-color","commit_stats":null,"previous_names":["koki-develop/v-color"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/koki-develop/v-color","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fv-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fv-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fv-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fv-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koki-develop","download_url":"https://codeload.github.com/koki-develop/v-color/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fv-color/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30478962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T20:45:58.186Z","status":"ssl_error","status_checked_at":"2026-03-13T20:45:20.133Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-11T19:54:26.670Z","updated_at":"2026-03-13T23:04:57.309Z","avatar_url":"https://github.com/koki-develop.png","language":"V","readme":"# v-color\n\nA simple color library for V.\n\n![screenshot](./assets/screenshot.png)\n\n## Installation\n\n```console\n$ v install koki-develop.color\n```\n\n## Usage\n\n```v\nimport koki_develop.color\n```\n\n### Ansi Color\n\n```v\nc := color.new('Hello, World!')\n\n// Foreground\nc.foreground(color.red).str() // =\u003e \\x1b[31mHello, World!\\x1b[0m\n\n// Background\nc.background(color.green).str() // =\u003e \\x1b[42mHello, World!\\x1b[0m\n\n// Foreground and Background\nc.foreground(color.red).background(color.green).str() // =\u003e \\x1b[31m\\x1b[42mHello, World!\\x1b[0m\n\n// You can also pass color name as string\nc.foreground('red').background('green').str() // =\u003e \\x1b[31m\\x1b[42mHello, World!\\x1b[0m\n\n```\n### RGB Color\n\n```v\nc := color.new('Hello, World!')\n\n// Foreground\nc.foreground(color.rgb(255, 0, 0)).str() // =\u003e \\x1b[38;2;255;0;0mHello, World!\\x1b[0m\n\n// Background\nc.background(color.rgb(0, 255, 0)).str() // =\u003e \\x1b[48;2;0;255;0mHello, World!\\x1b[0m\n\n// Foreground and Background\nc.foreground(color.rgb(255, 0, 0)).background(color.rgb(0, 255, 0)).str() // =\u003e \\x1b[38;2;255;0;0m\\x1b[48;2;0;255;0mHello, World!\\x1b[0m\n\n// You can also pass hex color code\nc.foreground('#ff0000').background('#00ff00').str() // =\u003e \\x1b[38;2;255;0;0m\\x1b[48;2;0;255;0mHello, World!\\x1b[0m\n```\n\n### Style\n\n```v\nc := color.new('Hello, World!')\n\nc.bold().str()        // =\u003e \\x1b[1mHello, World!\\x1b[0m\nc.dim().str()         // =\u003e \\x1b[2mHello, World!\\x1b[0m\nc.italic().str()      // =\u003e \\x1b[3mHello, World!\\x1b[0m\nc.underline().str()   // =\u003e \\x1b[4mHello, World!\\x1b[0m\nc.blink().str()       // =\u003e \\x1b[5mHello, World!\\x1b[0m\nc.rapid_blink().str() // =\u003e \\x1b[6mHello, World!\\x1b[0m\nc.reverse().str()     // =\u003e \\x1b[7mHello, World!\\x1b[0m\nc.hidden().str()      // =\u003e \\x1b[8mHello, World!\\x1b[0m\n\n// You can chain styles\nc.bold().italic().underline().str() // =\u003e \\x1b[1m\\x1b[3m\\x1b[4mHello, World!\\x1b[0m\n\n// With color\nc.foreground(color.red).bold().str() // =\u003e \\x1b[31m\\x1b[1mHello, World!\\x1b[0m\n```\n\n## License\n\n[MIT](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoki-develop%2Fv-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoki-develop%2Fv-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoki-develop%2Fv-color/lists"}