diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b39c35 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*/venv/ +*/.idea/ +*/__pycache__/ \ No newline at end of file diff --git a/gen.py b/Python/gen.py similarity index 82% rename from gen.py rename to Python/gen.py index e540d93..8d44550 100644 --- a/gen.py +++ b/Python/gen.py @@ -1,22 +1,28 @@ import turtle import random -def first(steps): - window = turtle.Screen() +def moves(): + while x + + + + + + Document + + + + + + \ No newline at end of file diff --git a/Tutorials/Code Art/1/index.js b/Tutorials/Code Art/1/index.js new file mode 100644 index 0000000..61fd99b --- /dev/null +++ b/Tutorials/Code Art/1/index.js @@ -0,0 +1,23 @@ +const canvas = document.getElementById('my-canvas'); +const ctx = canvas.getContext('2d'); +canvas.width = window.innerWidth; +canvas.height = window.innerHeight; +// console.log(ctx); + +ctx.beginPath(); + + +// canvas.addEventListener('mousemove', function (e){ +// console.log(e.x, e.y); +// ctx.rect(e.x,e.y,10,10); +// ctx.fill( ); +// // ctx.stroke(); + +// }); + +const degreeToRad = (deg) =>{ + return deg / 180 * Math.PI; +} + +ctx.arc(100, 100, 50, 0, degreeToRad(360)); +ctx.stroke(); diff --git a/Tutorials/Code Art/1/style.css b/Tutorials/Code Art/1/style.css new file mode 100644 index 0000000..079ef56 --- /dev/null +++ b/Tutorials/Code Art/1/style.css @@ -0,0 +1,8 @@ +#my-canvas{ + /* background-color: blue; */ + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} \ No newline at end of file diff --git a/Tutorials/Code Art/AllResources.zip b/Tutorials/Code Art/AllResources.zip new file mode 100644 index 0000000..aec5e08 Binary files /dev/null and b/Tutorials/Code Art/AllResources.zip differ diff --git a/main.py b/main.py deleted file mode 100644 index d80e74b..0000000 --- a/main.py +++ /dev/null @@ -1,7 +0,0 @@ -import first -steps = 215 -history = [] - -history = first.first(steps) - -print(history) \ No newline at end of file