Color24 Class


About Color24 Class


Color24 class is mainly used for creating and managing 24-bit colors.


Color24 Class Methods


Color24.RGB( byte R, byte G, byte B ) returns a 24-bit color from RGB values.

byte R: red component (0-255).
byte G: green component (0-255).
byte B: blue component (0-255).


Color24.R( long Color ) returns the red component from a 24-bit color.

long Color: 24-bit color.


Color24.G( long Color ) returns the green component from a 24-bit color.

long Color: 24-bit color.


Color24.B( long Color ) returns the blue component from a 24-bit color.

long Color: 24-bit color.


Code Example

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Giavapps.Windows.API;

public class CodeExample : MonoBehaviour

private long WindowHandle = 0;
private long ProgressBarHandle = 0;

void Start()
Plugin.Initialize();//Initializes Giavapps Windows API
WindowHandle = Window.Create(0, 100, 100, 400, 400, Constant.WS_VISIBLE | Constant.WS_SYSMENU | Constant.WS_MINIMIZEBOX | Constant.WS_MAXIMIZEBOX | Constant.WS_SIZEBOX, Constant.WS_EX_TOPMOST);//Creates a new window
Control.SetText(WindowHandle, "Giavapps Windows API");//Sets a new title for the specified window
ProgressBarHandle = ProgressBar.Create(WindowHandle, 10, 10, 150, 32, Constant.WS_VISIBLE | Constant.WS_CHILD, 0);//Creates a new progress bar
ProgressBar.SetPosition(ProgressBarHandle, 40);//Sets a new position for the specified progress bar
ProgressBar.SetColorBar(ProgressBarHandle, Color24.RGB(255, 0, 0));//Sets a new color for the specified progress bar
ProgressBar.SetColorBackground(ProgressBarHandle, Constant.CLR_DEFAULT);//Sets a new background color for the specified progress bar

void Update()

//Checks if the specified window has been closed
Control.Destroy(WindowHandle);//Destroys the specified window


void OnApplicationQuit()
Plugin.Deinitialize();//Deinitializes Giavapps Windows API



I am Luigi Piscopo, also known as DJ GiDeejay / Producer / Remixer in the music world. I am a Producer with a lot of experience in photo editing, video editing, audio editing, graphic design, web design, programming and promotion.

Comments are closed.