pixelass commited on
Commit
21a57cd
·
unverified ·
1 Parent(s): 65567a2

feat: provide random alias

Browse files
Files changed (1) hide show
  1. src/constants/index.ts +7 -1
src/constants/index.ts CHANGED
@@ -4,7 +4,13 @@ export const base = {
4
  */
5
  const canvas = document.querySelector('canvas');
6
  const ctx = canvas.getContext('2d');
7
- /*
 
 
 
 
 
 
8
  * The draw function is called every frame to update the canvas.
9
  * To change the drawing logic, modify the code inside this function.
10
  */
 
4
  */
5
  const canvas = document.querySelector('canvas');
6
  const ctx = canvas.getContext('2d');
7
+ /**
8
+ * Always use this random function
9
+ */
10
+ function random() {
11
+ return Math.random()
12
+ }
13
+ /**
14
  * The draw function is called every frame to update the canvas.
15
  * To change the drawing logic, modify the code inside this function.
16
  */