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

# Class MultiChannelGradientColoringFragment

##### Index

### Constructors

[constructor](#constructor)

### Methods

[decodeChannel](#decodechannel) [decodeChannel\_ORIG](#decodechannel_orig) [getCode](#getcode)

## Constructors

### constructor[](#constructor)

-   new MultiChannelGradientColoringFragment(  
        options: [MultiChannelGradientColoringFragmentOptions](https://docs.maptiler.com/sdk-js/modules/weather/api-reference/types/MultiChannelGradientColoringFragmentOptions/),  
    ): MultiChannelGradientColoringFragment[](#constructormultichannelgradientcoloringfragment)
    
    #### Parameters
    
    -   options: [MultiChannelGradientColoringFragmentOptions](https://docs.maptiler.com/sdk-js/modules/weather/api-reference/types/MultiChannelGradientColoringFragmentOptions/)
    
    #### Returns MultiChannelGradientColoringFragment
    

## Methods

### decodeChannel[](#decodechannel)

-   decodeChannel(pixel: [Pixel](https://docs.maptiler.com/sdk-js/modules/weather/api-reference/interfaces/Pixel/)): number\[\][](#decodechannel-1)
    
    #### Parameters
    
    -   pixel: [Pixel](https://docs.maptiler.com/sdk-js/modules/weather/api-reference/interfaces/Pixel/)
    
    #### Returns number\[\]
    

### decodeChannel\_ORIG[](#decodechannel_orig)

-   decodeChannel\_ORIG(pixel: [Pixel](https://docs.maptiler.com/sdk-js/modules/weather/api-reference/interfaces/Pixel/)): number\[\][](#decodechannel_orig-1)
    
    #### Parameters
    
    -   pixel: [Pixel](https://docs.maptiler.com/sdk-js/modules/weather/api-reference/interfaces/Pixel/)
    
    #### Returns number\[\]
    

### getCode[](#getcode)

-   getCode(): string[](#getcode-1)
    
    #### Returns string
