# C_CurveUtil: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_CurveUtil

## Functions

### C_CurveUtil.CreateColorCurve

```lua
curve = C_CurveUtil.CreateColorCurve()
```

Returns a new color curve object with no assigned points.

Returns:
- `curve`: LuaColorCurveObject

### C_CurveUtil.CreateCurve

```lua
curve = C_CurveUtil.CreateCurve()
```

Returns a new curve object with no assigned points.

Returns:
- `curve`: LuaCurveObject

### C_CurveUtil.EvaluateColorFromBoolean

```lua
value = C_CurveUtil.EvaluateColorFromBoolean(boolean, valueIfTrue, valueIfFalse)
```

Evaluates a potentially-secret boolean value and returns a color.

Arguments:
- `boolean`: bool
- `valueIfTrue`: colorRGBA
- `valueIfFalse`: colorRGBA

Returns:
- `value`: colorRGBA

### C_CurveUtil.EvaluateColorValueFromBoolean

```lua
value = C_CurveUtil.EvaluateColorValueFromBoolean(boolean, valueIfTrue, valueIfFalse)
```

Evaluates a potentially-secret boolean value and returns a single color component (eg. alpha).

Arguments:
- `boolean`: bool
- `valueIfTrue`: SingleColorValue
- `valueIfFalse`: SingleColorValue

Returns:
- `value`: SingleColorValue

### C_CurveUtil.EvaluateGameCurve

```lua
y = C_CurveUtil.EvaluateGameCurve(curveID, x)
```

Arguments:
- `curveID`: number
- `x`: number

Returns:
- `y`: number

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
