Skip to content

i want to have a better color convert tool #28

@vuon9

Description

@vuon9

that has a color picker or even a picker that lets me pick color from another app window
and output me all the details and all possibilities it can be converted to

and output me color as code so i can use it in code, here is a sample but it can bring more than that

# CSS Level 4 Color Module:

    rgb({red-b} {green-b} {blue-b})

    rgb({red-b} {green-b} {blue-b} / {alpha-p}%)

    hsl({hue-d}deg {hsl-saturation-p}% {lightness-p}%)

    hsl({hue-d}deg {hsl-saturation-p}% {lightness-p}% / {alpha-p}%)

# Swift:

    NSColor(
        calibratedRed: {red},
        green: {green},
        blue: {blue},
        alpha: {alpha}
    )

    NSColor(
        calibratedHue: {hue},
        saturation: {hsb-saturation},
        brightness: {brightness},
        alpha: {alpha}
    )

# .NET

    Color.FromRgb({red-b}, {green-b}, {blue-b})

    Color.FromArgb({red-b}, {green-b}, {blue-b}, {alpha-b})

# Java

    new Color({red-b}, {green-b}, {blue-b})

    new Color({red-b}, {green-b}, {blue-b}, {alpha-b})

# Android

    Color.rgb({red-b}, {green-b}, {blue-b})

    Color.argb({red-b}, {green-b}, {blue-b}, {alpha-b})

    <color name="color_name">{hex}</color>

    <color name="color_name">{hex-alpha}</color>

# OpenGL

    glColor3f({red}, {green}, {blue})

    glColor4f({red}, {green}, {blue}, {alpha})

# ObjC
  
    [UIColor colorWithRed:{red} green:{green} blue:{blue} alpha:{alpha}]

    [UIColor colorWithHue:{hue} saturation:{hsb-saturation} brightness:{brightness} alpha:{alpha}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions