Edit in GitHubLog an issue

@add-on-hlapi-sdk / Utils

Interface: Utils

Table of contents

Methods

Methods

createColor

createColor(red, green, blue, alpha?): Color

Create a new Color. All color components should be in a 0 - 1 range.

Parameters

NameTypeDescription
red
number
The red component in a range from 0 - 1.
green
number
The green component in a range from 0 - 1.
blue
number
The blue component in a range from 0 - 1.
alpha?
number
(optional) The alpha component in a range from 0 - 1. Defaults to 1 (fully opaque).

Returns

Color

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.