---
id: fast-colors.generatescaledpalettes
title: generateScaledPalettes() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [generateScaledPalettes](./fast-colors.generatescaledpalettes.md)

## generateScaledPalettes() function

Generates two palettes of length shortPaletteLength and longPaletteLength from a base color. The base color is compared to the default greyscale palette to determine where it should be placed. The short palette is then fed into centeredRescale to create the long palette. The colors in the short palette are always contained within the long.

<b>Signature:</b>

```typescript
export declare function generateScaledPalettes(input: ColorRGBA64, shortPaletteLength?: number, config?: CenteredRescaleConfig): {
    short: ColorRGBA64[];
    long: ColorRGBA64[];
};
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  input | [ColorRGBA64](./fast-colors.colorrgba64.md) |  |
|  shortPaletteLength | number |  |
|  config | [CenteredRescaleConfig](./fast-colors.centeredrescaleconfig.md) |  |

<b>Returns:</b>

{ short: [ColorRGBA64](./fast-colors.colorrgba64.md)<!-- -->\[\]; long: [ColorRGBA64](./fast-colors.colorrgba64.md)<!-- -->\[\]; }
