> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/datatype/colorsequencekeypoint.md).

# ColorSequenceKeypoint

## Overview

An element that constitutes a single keypoint in a ColorSequence, defining both the time value corresponding to a specific point and the color to be applied at that point. These values are sequentially connected to form the overall color change flow of a ColorSequence.

## Constructors

### new

Creates a ColorSequenceKeypoint with no values specified. After creating it, assign values to Time and Value to use it.

#### Parameters

#### Return

| `ColorSequenceKeypoint` | A new ColorSequenceKeypoint with no values specified. |
| ----------------------- | ----------------------------------------------------- |

#### Code Samples

```lua
-- Create a keypoint, then assign its time and color
local KeyPoint = ColorSequenceKeypoint.new()
KeyPoint.Time = 0.5
KeyPoint.Value = Color3.fromRGB(255, 0, 0)
```

### new

Creates a new ColorSequenceKeypoint by combining the provided time value and color value. The created keypoint represents a specific position within the ColorSequence and contains the color information to be applied at that point.

#### Parameters

| `number` time  | Specifies the time value where the keypoint will be positioned within the ColorSequence. Values typically use a range from 0 to 1, representing the relative position within the sequence. |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Color3` color | Defines the color to be applied at the specified time value.                                                                                                                               |

#### Return

| `ColorSequenceKeypoint` | A newly created ColorSequenceKeypoint with the provided time value and color value. |
| ----------------------- | ----------------------------------------------------------------------------------- |

#### Code Samples

```lua
local Time = 0.5
local Color = Color3.new(255, 0, 0)
local KeyPoint = ColorSequenceKeypoint.new(Time, Color)
```

## Properties

### Time

`number`

A value representing where the keypoint is placed within the ColorSequence, using a range from 0 to 1 to define the position between start and end.

#### Code Samples

```lua
local Time = 0.5
local KeyPoint = ColorSequenceKeypoint.new(Time, Color3.fromRGB(255, 0, 0))
print(KeyPoint.Time)
```

### Value

`Color3`

The value representing the color to be applied at the keypoint.

#### Code Samples

```lua
local Time = 0.5
local Color = Color3.fromRGB(255, 0, 0)
local KeyPoint = ColorSequenceKeypoint.new(Time, Color)
print(keyPoint.Value)
```

## Methods

## Events
