🤠
cedoscript
  • Introduction
  • Documentation
    • Packets
    • Setting Command
    • Java Imports
    • Examples
      • Creating a Pack
      • Custom Block Animation
      • Bhop
      • Setting Creation
      • Post Notification
      • Gradient Round Rectangle
      • Applying a gradient
      • Simulate a command
  • api
    • Events
    • Settings
    • Objects
      • EntityLivingBase
      • ItemStack
      • Player Abilities
      • Color
      • TimerUtil
      • Continual Animation
      • ShaderUtil
      • FrameBuffer
      • Rainbow
      • Drag
      • Pair
      • Module
  • Bindings
    • Client
    • Player
    • Packet
    • Action
    • Facing
    • Potion
    • Notification
    • Render
    • Stats
    • Font
    • User
    • World
Powered by GitBook
On this page
  • Creation
  • Functions
  • getRGB

Was this helpful?

  1. api
  2. Objects

Color

Creation

var color = color({ red: 236, green: 143, blue: 209 })

// OR

var color = color({ red: 236, green: 143, blue: 209, alpha: 120 })

//OR

var color = color({ hex:0xff00ff00 }) // Green
var color = color({ hex: -1 }) //White

Returns a java.awt.Color object

Functions

getRGB

color.getRGB()

Returns the color as an int instead of the java.awt.Color object

PreviousPlayer AbilitiesNextTimerUtil

Last updated 2 years ago

Was this helpful?