Qix-/color là dự án JavaScript với 4.9k sao. :rainbow: Javascript color conversion and manipulation library
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Set the values for individual channels with alpha, red, green, blue, hue, saturationl (hsl), saturationv (hsv), lightness, whiteness, blackness, cyan, magenta, yellow, black
String constructors are handled by color-string
Getters
color.hsl()
Convert a color to a different space (hsl(), cmyk(), etc.).
color.object() // {r: 255, g: 255, b: 255}
Get a hash of the color value. Reflects the color's current model (see above).
color.rgb().array() // [255, 255, 255]
Get an array of the values with array(). Reflects the color's current model (see above).
color.rgbNumber() // 16777215 (0xffffff)
Get the rgb number value.
color.hex() // #ffffff
Get the hex value. (NOTE:.hex() does not return alpha values; use .hexa() for an RGBA representation)
color.red() // 255
Get the value for an individual channel.
CSS Strings
color.hsl().string() // 'hsl(320, 50%, 100%)'
Calling .string() with a number rounds the numbers to that decimal place. It defaults to 1.
Luminosity
color.luminosity(); // 0.412
The WCAG luminosity of the color. 0 is black, 1 is white.
color.contrast(Color("blue")) // 12
The WCAG contrast ratio to another color, from 1 (same color) to 21 (contrast b/w white and black).
color.isLight() // true
color.isDark() // false
Get whether the color is "light" or "dark", useful for deciding text color.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Qix-/color là nguồn chính thức.
Qix-/color có bao nhiêu sao?
Qix-/color có 4.9k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/Qix-/color. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
Qix-/color có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho Qix-/color. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
Qix-/color còn đang phát triển không?
Commit gần nhất trên Qix-/color là 1 tháng trước (theo timestamp GitHub). Repo có 276 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Qix-/color viết bằng ngôn ngữ gì?
Qix-/color chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc color có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về color.