UNPKG
duckengine
Version:
latest (2.1.0)
2.1.0
2.0.1
2.0.0
1.2.1
1.2.0
1.1.2-beta
1.1.1-beta
1.1.0
1.1.0-beta
1.0.1
1.0.1-beta
1.0.0
1.0.0-beta
A 2D Game Engine for the web.
github.com/ksplatdev/DuckEngine
ksplatdev/DuckEngine
duckengine
/
src
/
helper
/
color
/
randomColor.ts
5 lines
(4 loc)
•
126 B
text/typescript
View Raw
1
2
3
4
5
export
default
function
randomColor
(
) {
let
a =
'#'
;
return
(a +=
Math
.
floor
(
Math
.
random
() *
16777215
).
toString
(
16
)); }