Ns Color Formats

Use when constructing new Color(...) from hex strings, ints, or rgb()/hsl() syntax, reading color.hex / color.argb, or colors come out with wrong alpha — hex STRINGS are RRGGBBAA (alpha last) while argb ints and the 4-arg constructor are alpha-FIRST, .hex drops the alpha when opaque, and short hex doubles each nibble.

nativescript 7b21264 3.6 KB Updated

File contents

nativescript/skills/tree/main/skills/core/ns-color-formats commit 7b212648d3

Frequently asked questions

npx skillmds@latest add nativescript/ns-color-formats