---
title: "makeUnitColor | Weather SDK | JavaScript maps SDK"
description: "Documentation for Weather JS"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs-qmgv.pages.dev/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Function makeUnitColor

-   makeUnitColor(color: [RgbaColor](https://docs-qmgv.pages.dev/sdk-js/modules/weather/api-reference/types/RgbaColor/)): [RgbaColor](https://docs-qmgv.pages.dev/sdk-js/modules/weather/api-reference/types/RgbaColor/)[](#makeunitcolor)
    
    Turns a \[r, g, b\] or \[r, g, b, a\] color defined on the \[0, 255\] range into a \[r, g, b, a\] color in the \[0, 1\] range
    
    #### Parameters
    
    -   color: [RgbaColor](https://docs-qmgv.pages.dev/sdk-js/modules/weather/api-reference/types/RgbaColor/)
    
    #### Returns [RgbaColor](https://docs-qmgv.pages.dev/sdk-js/modules/weather/api-reference/types/RgbaColor/)
