├── .gitattributes ├── Screenshots ├── ss1.png ├── ss2.png ├── ss3.png └── ss4.png ├── README.md ├── style.css ├── index.html └── main.js /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /Screenshots/ss1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snturk/Pattern-Creator/HEAD/Screenshots/ss1.png -------------------------------------------------------------------------------- /Screenshots/ss2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snturk/Pattern-Creator/HEAD/Screenshots/ss2.png -------------------------------------------------------------------------------- /Screenshots/ss3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snturk/Pattern-Creator/HEAD/Screenshots/ss3.png -------------------------------------------------------------------------------- /Screenshots/ss4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snturk/Pattern-Creator/HEAD/Screenshots/ss4.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pattern Creator 2 | 3 | How to use 4 | ------------------ 5 | 6 | It's pure Javascript, HTML and CSS. All you have to do is open index.html. 7 | 8 | Before you use, give a value to _VelocityX_ and _VelocityY_. 9 | 10 | After, just click "Run" button to start drawing. 11 | 12 | When process is going, you can stop it by "Pause" button or you can clear the canvas by "Clear". 13 | 14 | Also you can change values of _Process Speed_, _BallX_, _BallY_ and _Color_. 15 | 16 | **BallX and BallY**: It's values of the coordinates of our ball. 17 | 18 | **Ball Radius**: It changes radius of our ball. 19 | 20 | **Process Speed**: It effects the speed of our ball. 21 | 22 | **Color**: It changes color of the ball (Helps for better and sightly results.). 23 | 24 | Screenshots 25 | ------------------ 26 | 27 |  28 | 29 |  30 | 31 |  32 | 33 |  34 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color: rgba(19, 47, 100, 0.329); 3 | font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; 4 | transition-duration: 400ms; 5 | } 6 | #title{ 7 | font-size: 59px; 8 | font-weight: 200; 9 | margin: 1%; 10 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 11 | font-style: italic; 12 | } 13 | #howToHeader{ 14 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 15 | } 16 | #howTo{ 17 | background-color: white; 18 | float: left; 19 | border: 1.5px solid black; 20 | border-radius: 7px; 21 | width: fit-content; 22 | max-width: 22%; 23 | height: fit-content; 24 | padding: 10px; 25 | margin: 1.5%; 26 | transition-duration: 400ms; 27 | } 28 | #panelHeader{ 29 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 30 | font-weight: 600; 31 | } 32 | #controlPanel{ 33 | background-color: white; 34 | float: left; 35 | border: 1.5px black solid; 36 | border-radius: 7px; 37 | height: fit-content; 38 | width: fit-content; 39 | max-width: 20%; 40 | padding: 10px; 41 | margin: 1.5%; 42 | text-align: center; 43 | transition-duration: 400ms; 44 | } 45 | button{ 46 | cursor: pointer; 47 | } 48 | .variables{ 49 | font-size: 20px; 50 | font-weight: 500; 51 | margin: 2px; 52 | } 53 | #darkMode{ 54 | padding: 8px; 55 | margin: 5px; 56 | font-size: 14px; 57 | border-radius: 10px; 58 | color: white; 59 | font-weight: 200; 60 | background-color: rgb(63, 63, 63); 61 | transition-duration: 400ms; 62 | } 63 | #myCanvas{ 64 | background-color: white; 65 | border-radius: 5px; 66 | float: left; 67 | margin: 2%; 68 | transition-duration: 400ms; 69 | } 70 | #alert{ 71 | font-size: 22px; 72 | font-weight: 900; 73 | margin: 15px; 74 | } 75 | #runButton, #pauseButton, #clearButton{ 76 | padding: 10px; 77 | border-radius: 10px; 78 | background-color: black; 79 | color: white; 80 | margin: 10px; 81 | font-size: 14px; 82 | } 83 | #repo{ 84 | font-weight: 100; 85 | color: black; 86 | transition-duration: 400ms; 87 | } 88 | #repo:hover{ 89 | color: rgb(49, 93, 151); 90 | } 91 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |69 |