🤠
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
  • Functions
  • getColor
  • getSaturation
  • getSpeed
  • setSaturation
  • setSpeed

Was this helpful?

  1. api
  2. Objects

Rainbow

This object can be used when a color setting is set to rainbow

Functions

getColor

var rainbowColor = rainbow.getColor()

//This returns rainbow's color using an index of the rainbow
var rainbowColor2 = rainbow.getColor(80)

Returns a Java.awt.Color object of the rainbow's color

getSaturation

var saturation = rainbow.getSaturation()

Returns a Number from 0-1 on how much the rainbow is saturated

getSpeed

var speed = rainbow.getSpeed()

Returns a Number on how fast the rainbow is going (lower values are faster)

setSaturation

rainbow.setSaturation(sat)

Sets the saturation of the rainbow (Values should be between 1-0)

setSpeed

rainbow.setSpeed(speed)

Sets the speed of the rainbow (lower values are faster)

PreviousFrameBufferNextDrag

Last updated 2 years ago

Was this helpful?