सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Kandinsky एक हल्का Dart पैकेज है रंग संपादन के लिए, जो डायनामिक और निश्चित रेडियल और लीनियर ग्रेडिएंट बनाने के उपकरण प्रदान करता है। यह RGB, HEX, HSL, टोन और CSS रंग प्रारूपों के बीच रूपांतरण का समर्थन करता है, जिससे यह लचीले रंग प्रबंधन की आवश्यकता वाले एप्लिकेशन के लिए आदर्श है। सरलता के साथ डिज़ाइन किया गया, यह Flutter प्रोजेक्ट में बिना ओवरहेड के बिल्कुल एकीकृत हो जाता है। इस लाइब्रेरी का उपयोग विशेष रूप से UI डिज़ाइन, थीम कस्टमाइज़ेशन और प्रतिक्रियाशील लेआउट में ग्रेडिएंट उत्पादन के लिए किया जाता है।
उपयोग
UI में डायनामिक ग्रेडिएंट बनाना
रंग प्रारूपों के बीच परिवर्तन करना
थीम प्रणालियों का निर्माण
रंग पैलेट बनाना
दृश्य तत्वों के अनुकूलन
मुख्य विशेषताएँ
रेडियल और रैखिक धुंधलाहट समर्थित है
RGB, HEX, HSL, रंग, और CSS रंग परिवर्तन
हल्का और न्यूनतम निर्भरता
Flutter के साथ आसान एकीकरण
गतिशील और स्थिर ग्रेडिएंट उत्पादन
इनके लिए उपयुक्त
रंग उपयोगिताओं की आवश्यकता वाले Flutter विकासकर्मी
थीम का अनुप्रयोग करने वाले UI/UX डिजाइनर
डायनामिक रंग योजना वाले ऐप्स
ग्रेडिएंट समर्थन की आवश्यकता वाले प्रोजेक्ट
सरल रंग परिवर्तन की आवश्यकता है
विचार योग्य बातें
कोई प्लेटफॉर्म-विशिष्ट विशेषताएँ नहीं
रंग संचालन पर सीमित
निर्मित रंग चयनकर्ता नहीं है
जटिल छवि प्रसंस्करण के लिए नहीं बनाया गया है
आधारभूत उपयोग के अलावा न्यूनतम दस्तावेज़ीकरण
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
returns an length n array of Vector3 colours. colours are evenly spaced between c1 and c2.
List<List<num>> linearGradient(num n, List<num> color1, List<num> color2)
gradient(easeFn, n, c1, c2)
returns an length n array of Vector3 colours. colours are between color1 and color2, and are spaced according to the easing function easeFn.
List<List<num>> gradient(Function ease, int n, List<num> color1, List<num> color2)
multiGradient(n, [col1, col3, ..., colN])
returns a length n array of Vector3 colours. colours are the ones formed from the linearGradient(n/(numColours-1), col1, col2) for all colours col1, col2, ..., colN
List<List<num>> multiGradient(num n, List<List<num>> colors)
rLinearGradient(n, c1, c2)
returns a rounded, length n array of Vector3 colours. colours are evenly spaced between color1 and color2.
List<List<num>> rLinearGradient(num n, List<num> color1, List<num> color2)
rGradient(easeFn, n, c1, c2)
returns a rounded, length n array of Vector3 colours. colours are between color1 and color2, and are spaced according to the easing function easeFn.
List<List<num>> rGradient(Function ease, num n, List<num> color1, List<num> color2)
rMultiGradient(n, [col1, col3, ..., colN])
returns a rounded, length n array of Vector3 colours. colours are the ones formed from the linearGradient(n/(numColours-1), col1, col2) for all colours col1, col2, ..., colN
List<List<num>> rMultiGradient(num n, List<List<num>> colors)
complimentHex(n, hexString)
returns an length n array of hex strings. The 0th color is the same as the input hexString, while the others are colours corresponding to an eve turn around the colour wheel. If n is 3 for example, the two other colours would represent a 1/3 and 2/3 rotation of the colour wheel.
List<String> complimentHex(num n, String hex)
complimentHsl(n, hsl)
returns an length n array of hsl Vector3. The 0th color is the same as the input hsl, while the others are colours corresponding to an eve turn around the colour wheel. If n is 3 for example, the two other colours would represent a 1/3 and 2/3 rotation of the colour wheel.
List<List<num>> complimentHsl(num n, List<num> color)
complimentRgb(n, rgb)
returns an length n array of rgb Vector3. The 0th color is the same as the input rgb, while the others are colours corresponding to an eve turn around the colour wheel. If n is 3 for example, the two other colours would represent a 1/3 and 2/3 rotation of the colour wheel.
List<List<num>> complimentRgb(num n, List<num> color)
rgb2css(alpha, rgb)
returns an rgba css string like rgba(255, 255, 255, 1) from the rgb color and alpha value
Stringrgb2css(num alpha, List<num> color)
hsl2css(alpha, hsl)
returns an hsl css string like hsl(222, 50%, 75%, 0.6) from the hsl color and alpha value
Stringhsl2css(num alpha, List<num> hsl)
color2hue(num p, num q, num t)
returns a saturation of a specific color value
numcolor2hue(num colorValue, num shading, num tint)
Features and bugs
Please file feature requests and bugs at the issue tracker.