👑
Impulse documentation
  • Getting started
  • Examples
    • Console
    • Window
  • enviornment
    • Globals
      • Lua globals
      • Impulse globals
    • Libraries
      • Win32
      • Direct X
      • Renderer
      • Input
      • Crypt
      • Memory
      • File system
      • Debug
  • Enumerations
    • Key codes
    • Cursor style
    • Primitive topology
  • Data types
    • Vector2
    • Vector3
    • Vertex
    • Color
    • Draw command
Powered by GitBook

Impulse links

  • GitHub
  • Project
  • Discord

© 2025 Impulse

On this page
  1. Data types

Color

Constructor

color.new(r: integer, g: integer, b: integer, a: integer) -> color
Properties
Description

r

Represents the intensity of the red color channel, ranging from 0 to 255.

g

Represents the intensity of the green color channel, ranging from 0 to 255.

b

Represents the intensity of the blue color channel, ranging from 0 to 255.

a

Represents the transparency of the color, ranging from 0 to 255 (visible).

PreviousVertexNextDraw command

Last updated 3 months ago