-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Math.PI2(digit) can be used to get PIs value till the digit.
Math.PI2() //3.14
Math.PI2(3) //3.142
Math.randomNum(max,min)
returns random number from the number passed in
Math.randomcolor()
returns a random color in string format using rgb format.
Math.range(number,max,min,strict)
returns true if the number falls between max & min. Strict mode[by default false] could be used to make sure the number is between them and will return false if the number is same as max or min.
new Date().preset(format)
returns the date by the format passed. Try the format 'MM/DD/YYYY hh:mm:ss'
new Date().getFullMonth()
returns the date's Month by Full name instead of a number.
The variable cursourInfo
has the info if the mouse is clicking, is the mouse on the page, the last recorded mouse position
HexToRgb(hex)
returns the rgb from a hex
RgbToHex(rgb)
returns the hex from a rgb