---
title: "floatifyColor | 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 floatifyColor

-   floatifyColor(color: [RgbaColor](https://docs-qmgv.pages.dev/sdk-js/modules/weather/api-reference/types/RgbaColor/)): string[](#floatifycolor)
    
    Turns a RgbaColor into a string GLSL color constructor.
    
    #### Parameters
    
    -   color: [RgbaColor](https://docs-qmgv.pages.dev/sdk-js/modules/weather/api-reference/types/RgbaColor/)
    
    #### Returns string
    
    a GLSL vec4 color constructor
