Skip to content

Commit 6652481

Browse files
author
Your Name
committed
Addin up some more files
1 parent 7684fd4 commit 6652481

File tree

1,508 files changed

+250758
-1278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,508 files changed

+250758
-1278
lines changed

.vscode/c_cpp_properties.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "windows-gcc-x64",
5+
"includePath": [
6+
"${workspaceFolder}/**"
7+
],
8+
"compilerPath": "gcc",
9+
"cStandard": "${default}",
10+
"cppStandard": "${default}",
11+
"intelliSenseMode": "windows-gcc-x64",
12+
"compilerArgs": [
13+
""
14+
]
15+
}
16+
],
17+
"version": 4
18+
}

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "C/C++ Runner: Debug Session",
6+
"type": "cppdbg",
7+
"request": "launch",
8+
"args": [],
9+
"stopAtEntry": false,
10+
"externalConsole": true,
11+
"cwd": "d:/Web DEV/Projects",
12+
"program": "d:/Web DEV/Projects/build/Debug/outDebug",
13+
"MIMode": "gdb",
14+
"miDebuggerPath": "gdb",
15+
"setupCommands": [
16+
{
17+
"description": "Enable pretty-printing for gdb",
18+
"text": "-enable-pretty-printing",
19+
"ignoreFailures": true
20+
}
21+
]
22+
}
23+
]
24+
}

.vscode/settings.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"C_Cpp_Runner.cCompilerPath": "gcc",
3+
"C_Cpp_Runner.cppCompilerPath": "g++",
4+
"C_Cpp_Runner.debuggerPath": "gdb",
5+
"C_Cpp_Runner.cStandard": "",
6+
"C_Cpp_Runner.cppStandard": "",
7+
"C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat",
8+
"C_Cpp_Runner.useMsvc": false,
9+
"C_Cpp_Runner.warnings": [
10+
"-Wall",
11+
"-Wextra",
12+
"-Wpedantic",
13+
"-Wshadow",
14+
"-Wformat=2",
15+
"-Wcast-align",
16+
"-Wconversion",
17+
"-Wsign-conversion",
18+
"-Wnull-dereference"
19+
],
20+
"C_Cpp_Runner.msvcWarnings": [
21+
"/W4",
22+
"/permissive-",
23+
"/w14242",
24+
"/w14287",
25+
"/w14296",
26+
"/w14311",
27+
"/w14826",
28+
"/w44062",
29+
"/w44242",
30+
"/w14905",
31+
"/w14906",
32+
"/w14263",
33+
"/w44265",
34+
"/w14928"
35+
],
36+
"C_Cpp_Runner.enableWarnings": true,
37+
"C_Cpp_Runner.warningsAsError": false,
38+
"C_Cpp_Runner.compilerArgs": [],
39+
"C_Cpp_Runner.linkerArgs": [],
40+
"C_Cpp_Runner.includePaths": [],
41+
"C_Cpp_Runner.includeSearch": [
42+
"*",
43+
"**/*"
44+
],
45+
"C_Cpp_Runner.excludeSearch": [
46+
"**/build",
47+
"**/build/**",
48+
"**/.*",
49+
"**/.*/**",
50+
"**/.vscode",
51+
"**/.vscode/**"
52+
],
53+
"C_Cpp_Runner.useAddressSanitizer": false,
54+
"C_Cpp_Runner.useUndefinedSanitizer": false,
55+
"C_Cpp_Runner.useLeakSanitizer": false,
56+
"C_Cpp_Runner.showCompilationTime": false,
57+
"C_Cpp_Runner.useLinkTimeOptimization": false,
58+
"C_Cpp_Runner.msvcSecureNoWarnings": false
59+
}

Canvas/app.js

100644100755
File mode changed.

Canvas/canvas.js

100644100755
Lines changed: 134 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -1,134 +1,134 @@
1-
2-
// //rectangles
3-
// c.fillRect(100, 100, 100, 100);
4-
// c.fillRect(400, 100, 100,100);
5-
// c.fillRect(300, 300, 100, 100);
6-
7-
// //line
8-
// c.beginPath();
9-
// c.moveTo(350, 100);
10-
// c.lineTo(400, 500);
11-
// c.strokeStyle = '#FCFF00';
12-
// c.stroke();
13-
14-
// //Arc / Circle
15-
16-
// for (let i = 0; i < 150; i++) {
17-
// var x = Math.random() * window.innerWidth;
18-
// var y = Math.random() * window.innerHeight;
19-
20-
// c.beginPath();
21-
// c.arc(x, y, 20, 0, Math.PI * 2, false);
22-
// let colorNo = Math.floor(Math.random() * 10 + 1);
23-
// let color = colorNo === 1 ? "Red" : colorNo === 2 ? "Purple" : colorNo === 3 ? "Yellow" : colorNo === 4 ? "maroon" : colorNo ===5 ? "Palegreen": colorNo ===6 ? "Orange" : colorNo === 7 ? "Green" :colorNo=== 8? "crimson" : colorNo === 9 ? "lime" : "tan";
24-
// c.strokeStyle = color ;
25-
// c.stroke();
26-
27-
// }
28-
var canvas = document.querySelector("canvas");
29-
30-
canvas.width = window.innerWidth;
31-
32-
canvas.height = window.innerHeight;
33-
34-
var c = canvas.getContext("2d");
35-
36-
var mouse = {
37-
x: undefined,
38-
y: undefined
39-
}
40-
window.addEventListener('mousemove', function (event) {
41-
mouse.x = event.x;
42-
mouse.y = event.y;
43-
44-
})
45-
46-
window.addEventListener('resize', function () {
47-
canvas.width = window.innerWidth;
48-
canvas.height = window.innerHeight;
49-
init();
50-
})
51-
52-
53-
var colorArray = [
54-
'#413e4a',
55-
'#73626e',
56-
'#b38184',
57-
'#f0b49e',
58-
'#f7e4be',
59-
'#005f6b',
60-
'#343838',
61-
'#00b4cc'
62-
];
63-
64-
class Circle {
65-
constructor(x, y, dx, dy, radius) {
66-
this.x = x;
67-
this.y = y;
68-
this.dx = dx;
69-
this.dy = dy;
70-
this.radius = radius;
71-
this.minRadius = radius;
72-
this.maxRadius =(Math.random() * 25) + 7;
73-
this.color = colorArray[Math.floor(Math.random() * colorArray.length)];
74-
75-
this.draw = function () {
76-
c.beginPath();
77-
c.arc(this.x, this.y, this.radius, 0, Math.PI * 2, false);
78-
c.fillStyle = this.color;
79-
c.fill();
80-
c.closePath();
81-
};
82-
83-
this.update = function () {
84-
85-
if (this.x + this.radius > innerWidth || this.x - this.radius < 0) {
86-
this.dx = -this.dx;
87-
}
88-
if (this.y + this.radius > innerHeight || this.y - this.radius < 0) {
89-
this.dy = -this.dy;
90-
}
91-
92-
this.x += this.dx;
93-
this.y += this.dy;
94-
95-
if (mouse.x - this.x < 50 && mouse.x - this.x > -50 && mouse.y - this.y < 50 && mouse.y - this.y > -50) {
96-
if (this.radius < this.maxRadius) {
97-
this.radius += 1;
98-
}
99-
}
100-
101-
else if (this.radius > this.minRadius) {
102-
this.radius -= 1;
103-
}
104-
this.draw();
105-
};
106-
}
107-
}
108-
var circleArray = [];
109-
110-
111-
function init() {
112-
circleArray = [];
113-
for (let i = 0; i < 20; i++) {
114-
var x = Math.random() * (innerWidth - radius * 2) + radius;
115-
var y = Math.random() *(innerHeight - radius * 2) + radius;
116-
var dx = (Math.random() - 0.5) * 4;
117-
var dy = (Math.random() - 0.5) * 4;
118-
var radius = Math.random() * 2 + 3;
119-
circleArray.push(new Circle(x ,y , dx ,dy,radius ));
120-
}
121-
122-
}
123-
124-
function animate() {
125-
requestAnimationFrame(animate);
126-
c.clearRect(0, 0, innerWidth, innerHeight);
127-
for (let i = 0; i < circleArray.length; i++) {
128-
circleArray[i].update();
129-
130-
}
131-
132-
}
133-
init();
134-
animate();
1+
2+
// //rectangles
3+
// c.fillRect(100, 100, 100, 100);
4+
// c.fillRect(400, 100, 100,100);
5+
// c.fillRect(300, 300, 100, 100);
6+
7+
// //line
8+
// c.beginPath();
9+
// c.moveTo(350, 100);
10+
// c.lineTo(400, 500);
11+
// c.strokeStyle = '#FCFF00';
12+
// c.stroke();
13+
14+
// //Arc / Circle
15+
16+
// for (let i = 0; i < 150; i++) {
17+
// var x = Math.random() * window.innerWidth;
18+
// var y = Math.random() * window.innerHeight;
19+
20+
// c.beginPath();
21+
// c.arc(x, y, 20, 0, Math.PI * 2, false);
22+
// let colorNo = Math.floor(Math.random() * 10 + 1);
23+
// let color = colorNo === 1 ? "Red" : colorNo === 2 ? "Purple" : colorNo === 3 ? "Yellow" : colorNo === 4 ? "maroon" : colorNo ===5 ? "Palegreen": colorNo ===6 ? "Orange" : colorNo === 7 ? "Green" :colorNo=== 8? "crimson" : colorNo === 9 ? "lime" : "tan";
24+
// c.strokeStyle = color ;
25+
// c.stroke();
26+
27+
// }
28+
var canvas = document.querySelector("canvas");
29+
30+
canvas.width = window.innerWidth;
31+
32+
canvas.height = window.innerHeight;
33+
34+
var c = canvas.getContext("2d");
35+
36+
var mouse = {
37+
x: undefined,
38+
y: undefined
39+
}
40+
window.addEventListener('mousemove', function (event) {
41+
mouse.x = event.x;
42+
mouse.y = event.y;
43+
44+
})
45+
46+
window.addEventListener('resize', function () {
47+
canvas.width = window.innerWidth;
48+
canvas.height = window.innerHeight;
49+
init();
50+
})
51+
52+
53+
var colorArray = [
54+
'#413e4a',
55+
'#73626e',
56+
'#b38184',
57+
'#f0b49e',
58+
'#f7e4be',
59+
'#005f6b',
60+
'#343838',
61+
'#00b4cc'
62+
];
63+
64+
class Circle {
65+
constructor(x, y, dx, dy, radius) {
66+
this.x = x;
67+
this.y = y;
68+
this.dx = dx;
69+
this.dy = dy;
70+
this.radius = radius;
71+
this.minRadius = radius;
72+
this.maxRadius =(Math.random() * 25) + 7;
73+
this.color = colorArray[Math.floor(Math.random() * colorArray.length)];
74+
75+
this.draw = function () {
76+
c.beginPath();
77+
c.arc(this.x, this.y, this.radius, 0, Math.PI * 2, false);
78+
c.fillStyle = this.color;
79+
c.fill();
80+
c.closePath();
81+
};
82+
83+
this.update = function () {
84+
85+
if (this.x + this.radius > innerWidth || this.x - this.radius < 0) {
86+
this.dx = -this.dx;
87+
}
88+
if (this.y + this.radius > innerHeight || this.y - this.radius < 0) {
89+
this.dy = -this.dy;
90+
}
91+
92+
this.x += this.dx;
93+
this.y += this.dy;
94+
95+
if (mouse.x - this.x < 50 && mouse.x - this.x > -50 && mouse.y - this.y < 50 && mouse.y - this.y > -50) {
96+
if (this.radius < this.maxRadius) {
97+
this.radius += 1;
98+
}
99+
}
100+
101+
else if (this.radius > this.minRadius) {
102+
this.radius -= 1;
103+
}
104+
this.draw();
105+
};
106+
}
107+
}
108+
var circleArray = [];
109+
110+
111+
function init() {
112+
circleArray = [];
113+
for (let i = 0; i < 20; i++) {
114+
var x = Math.random() * (innerWidth - radius * 2) + radius;
115+
var y = Math.random() *(innerHeight - radius * 2) + radius;
116+
var dx = (Math.random() - 0.5) * 4;
117+
var dy = (Math.random() - 0.5) * 4;
118+
var radius = Math.random() * 2 + 3;
119+
circleArray.push(new Circle(x ,y , dx ,dy,radius ));
120+
}
121+
122+
}
123+
124+
function animate() {
125+
requestAnimationFrame(animate);
126+
c.clearRect(0, 0, innerWidth, innerHeight);
127+
for (let i = 0; i < circleArray.length; i++) {
128+
circleArray[i].update();
129+
130+
}
131+
132+
}
133+
init();
134+
animate();

Canvas/canvas2.js

100644100755
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const canvas = document.querySelector('canvas');
2-
const c = canvas.getContext('2d');
3-
4-
5-
1+
const canvas = document.querySelector('canvas');
2+
const c = canvas.getContext('2d');
3+
4+
5+

0 commit comments

Comments
 (0)