Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>solar2d-hex-to-normalized-colorNew to Visual Studio Code? Get it now.
solar2d-hex-to-normalized-color

solar2d-hex-to-normalized-color

Movosoft

|
219 installs
| (0) | Free
A plugin to convert RGB or RGBA to a normalized table in Solar2d (e.g. { 1.00, 1.00, 1.00 }). The plugin works with #fff notation as well
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Solar2d Hex to normalized table

A simple extension to convert hex color codes (HTML style) to Solar2d normalized color tables.

An example is worth a thousand words:

 color = #fff          -- becomes color = { 1.00, 1.00, 1.00 }
 color = #f8af          -- becomes color = { 1.00, 0.53, 0.67, 1.00 }
 color = #ff80a040      -- becomes color = { 1.00, 0.50, 0.63, 0.25 }

Shortcuts

converts selected text to normalized table

  • Windows/Linux: ctrl-alt-m
  • MacOS: cmd-opt-m
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft