๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

๋…ธ๋งˆ๋“œ ์ฝ”๋”43

[๋ฐ”๋‹๋ผJS๋กœ ๊ทธ๋ฆผํŒ ๋งŒ๋“ค๊ธฐ] 2D Context [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/IlANstQ1h3M MDN์„ ํ†ตํ•ด์„œ canvas์— ๋Œ€ํ•ด ๋ฐฐ์›Œ๋ณด์ž! ํ•„์š”ํ•œ๊ฑด ์ด ์‚ฌ์ดํŠธ์— ๋‹ค ์žˆ๋‹ค. https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D CanvasRenderingContext2D - Web APIs | MDN CanvasRenderingContext2D The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for draw.. 2021. 4. 25.
[๋ฐ”๋‹๋ผJS๋กœ ๊ทธ๋ฆผํŒ ๋งŒ๋“ค๊ธฐ] Canvas Events [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/Efmq3MY7BN8 ๋จผ์ € canvas ์œ„์— ๋งˆ์šฐ์Šค๊ฐ€ ์˜ฌ๋ ค์ ธ์žˆ์œผ๋ฉด ๊ทธ๊ฒƒ์„ ๊ฐ์ง€ํ•˜๋Š” javascript๋ฅผ ๋งŒ๋“ค ๊ฒƒ์ž„! app.js์— ์ฝ”๋”ฉ์„ ํ•œ๋‹ค. const canvas = document.getElementById("jsCanvas"); function onMouseMove(event) { console.log(event); } if(canvas) { canvas.addEventListener("mousemove", onMouseMove); } window์—์„  ๊ฐ•์˜์˜์ƒ์ฒ˜๋Ÿผ ๋งˆ์šฐ์Šค๋ฅผ ์›€์ง์ด๋Š” ์ฆ‰์‹œ console์ฐฝ์— ๋ฐ”๋กœ๋ฐ”๋กœ ์ถœ๋ ฅ์ด ๋˜์ง€์•Š์Œ. ์‚ฌ์‹ค window ๋ฌธ์ œ์ธ์ง€ ๋‚ด ์ปดํ“จํ„ฐ ๋ฌธ์ œ์ธ์ง„ ์•Œ์ˆ˜ ์—†์Œ. ์ด ๊ธ€์„ ๋ณด๊ณ  ๊ณ„์‹ ๋ถ„๋“ค๋„ .. 2021. 4. 24.
[๋ฐ”๋‹๋ผJS๋กœ ๊ทธ๋ฆผํŒ ๋งŒ๋“ค๊ธฐ] Styles part Two [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/bxeC0BYm8Y0 controlํ•˜๊ธฐ ์œ„ํ•ด์„  ๋‘ ๊ฐœ์˜ ๋ฒ„ํŠผ์ด ํ•„์š”ํ•จ. fill, save. ์ถ”๊ฐ€ํ•  ๋ถ€๋ถ„ โ–ผ Fill Save ์ „์ฒด ์ฝ”๋“œ โ–ผ Fill Save styles.css๋„ ์ˆ˜์ •ํ•ด์ค€๋‹ค. @import "reset.css"; body { background-color: #f6f9fc; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; display: flex; flex-direction: column; align-items:.. 2021. 4. 23.
[๋ฐ”๋‹๋ผJS๋กœ ๊ทธ๋ฆผํŒ ๋งŒ๋“ค๊ธฐ] Styles part One [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/V4yUrRjAiDQ CSS๋ฅผ ์†๋ณผ๊ฑฐ์ž„... ์šฐ์„  ๋ฐฐ๊ฒฝ ์ƒ‰์„ ์ง€์ •ํ•˜๊ณ  ๊ตฌ๊ธ€์— 'reset css'๋ฅผ ๊ฒ€์ƒ‰ํ•œ ํ›„ ๋ฐ‘์ค„ ์นœ ์‚ฌ์ดํŠธ์— ๋“ค์–ด๊ฐ„๋‹ค. ์ด๋ ‡๊ฒŒ ๋ญ”๊ฐ€๊ฐ€ ๋œฐ๊ฒƒ์ด๋‹ค... ๊ณ ๋Œ€๋กœ ๋ณต์‚ฌํ•œ๋‹ค. reset.css๋ฅผ ์ƒˆ๋กœ ์ƒ์„ฑํ•˜๊ณ  ์œ„์— ๋ณต์‚ฌํ•œ ์ฝ”๋“œ๋ฅผ ๋ถ™์—ฌ๋„ฃ๊ธฐํ•œ๋‹ค. styles.css๋„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ฝ”๋“œ๋ฅผ ์ˆ˜์ •ํ•œ๋‹ค. ์ด์ œ ์บ”๋ฒ„์Šค๋ฅผ ๋งŒ๋“ ๋‹ค. index.html์—” id๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  style์—” class๋ฅผ ์‚ฌ์šฉํ•  ๊ฒƒ์ž„ style.css๋ฅผ ์ข€๋” ์ˆ˜์ •ํ•œ๋‹ค. @import "reset.css"; body { background-color: #f6f9fc; font-family: -apple-system, BlinkMacSystemFont, 'Se.. 2021. 4. 23.
[๋ฐ”๋‹๋ผJS๋กœ ๊ทธ๋ฆผํŒ ๋งŒ๋“ค๊ธฐ] Project Setup [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/rE8eZktwyV8 ๋จผ์ € Github์— paintjs๋ผ๋Š” repository๋ฅผ ์ƒ์„ฑํ•œ๋‹ค. (Github Desktop์„ ์‚ฌ์šฉ) ์ƒ๋‹จ๋ฉ”๋‰ด์— File → New repository๋กœ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ๋‹ค. ์ƒ์„ฑํ•œ ํ›„์— 'Open in Visual Studio Code' ๋ฒ„ํŠผ์„ ํด๋ฆญ. ์•„๋ž˜์™€ ๊ฐ™์ด Visual Studio Code ์ฐฝ์ด ๋œฌ๋‹ค. paint.js ํด๋” ์•ˆ์— index.html, app.js, styles.css 3๊ฐœ์˜ ํŒŒ์ผ์„ ์ƒ์„ฑํ•œ๋‹ค. index.html์— ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ฝ”๋”ฉํ•œ๋‹ค. ํ„ฐ๋ฏธ๋„์— Git์œผ๋กœ Commitํ•œ๋‹ค git commit -m "Initial Commit" โ˜… -m ๋’ค์—๋Š” ๋ฉ”์„ธ์ง€๋ฅผ ์ ๋Š” ๊ฒƒ์ธ๋ฐ ์ฒ˜์Œ comm.. 2021. 4. 23.
[๋ฐ”๋‹๋ผJS๋กœ ๊ทธ๋ฆผํŒ ๋งŒ๋“ค๊ธฐ] Requirements [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/mXssD1qCA5A -์ด ์ˆ˜์—…์„ ๋“ฃ๊ธฐ ์œ„ํ•ด์„  '์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ ๋ฐ”๋‹๋ผ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ'๋ฅผ ๋ฐ˜๋“œ์‹œ ์ˆ˜๊ฐ•ํ•ด์•ผํ•จ (ํ˜„์žฌ ๋…ธ๋งˆ๋“œ ์ฝ”๋” ํ™ˆํŽ˜์ด์ง€์—” '๋ฐ”๋‹๋ผJS๋กœ ํฌ๋กฌ ์•ฑ ๋งŒ๋“ค๊ธฐ'๋ผ๋Š” ๊ฐ•์˜๋กœ ํ‘œ์‹œ๋˜์–ด์žˆ์Œ) -๊ธฐ์ดˆ ์ง€์‹์€ ์„ค๋ช…ํ•˜์ง€ ์•Š์„๊ฑฐ์ž„. ๋ฐ”๋กœ ์‹ค์ „์œผ๋กœ ๋“ค์–ด๊ฐ -๊ตฌ๊ธ€ ํฌ๋กฌ, Git, Github, ์œˆ๋„์šฐ๋Š” Visual Studio Code / ๋งฅ์€ Atom์ด ํ•„์š”ํ•จ 2021. 4. 23.
๋ฐ˜์‘ํ˜•