Skip to content

Commit d100d32

Browse files
committed
tweak colors and settings
update readme update website description
1 parent e90c04d commit d100d32

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ This website will be the homepage for all of my projects. Any and all projects w
1111
## Todo for this page:
1212
- Add links to pages
1313
- Update favicon to be an ico
14+
- Add ability to toggle dark mode and light mode
15+
- Add ability to change dot radius
16+
- Add ability to change dot colors (ish)
17+
- Add ability to change dot spacing
18+
- Add ability to get dot to follow cursor instead of tilt
19+
- Add animation to show that the plane is clickable
1420

1521
## Possible Projects:
1622
- Mobile Monopoly Client

web/pages/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const Home: NextPage = () => {
1212
}}>
1313
<Head>
1414
<title>hackr labs</title>
15-
<meta name="description" content="Generated by create next app" />
15+
<meta name="description" content="colorful dots go brrr" />
16+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"></meta>
1617
<link rel="icon" href="/hackrlabs.png" />
1718
<style>{`body { margin: 0px; padding: 0px; background-image: linear-gradient(120deg, #000000, #030303); overscroll-behavior-y: contain; touch-action: none; user-select: none; }`}</style>
1819
</Head>

web/util/Canvas.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import React, { useRef, useEffect } from 'react'
66

77
const GRAVITY: number = 9.81;
88
const GRAVITY_MULTIPLIER: number = 0.05;
9-
const RADIUS: number = 5;
10-
const SPACING: number = 50;
9+
const RADIUS: number = 2;
10+
const SPACING: number = 35;
1111
const MAX_VELOCITY: number = 100;
1212
const EXTERNAL_PADDING_PERCENT: number = 0.05;
1313
let X_PADDING: number = 0;
@@ -218,8 +218,8 @@ class Square {
218218
this.reset_from_x = this.x;
219219
this.reset_from_y = this.y;
220220
this.color = checkOnImageMap(initial_x, initial_y)
221-
? `#${(Math.random() * 100).toString(16).slice(0, 2)}${(Math.random() * 175).toString(16).slice(0, 2)}${(Math.random() * 255).toString(16).slice(0, 2)}`
222-
: "#222222"
221+
? `#${(Math.random() * 70 + 100).toString(16).slice(0, 2)}${(Math.random() * 100 + 100).toString(16).slice(0, 2)}${(Math.random() * 155 + 100).toString(16).slice(0, 2)}`
222+
: "#FFFFFF22"
223223
console.log(this.initial_x, this.initial_y);
224224
}
225225

0 commit comments

Comments
 (0)