{"id":30,"date":"2021-10-15T02:57:57","date_gmt":"2021-10-15T01:57:57","guid":{"rendered":"http:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/?p=30"},"modified":"2023-04-06T14:01:16","modified_gmt":"2023-04-06T13:01:16","slug":"week-1-journal","status":"publish","type":"post","link":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/2021\/10\/15\/week-1-journal\/","title":{"rendered":"Week 1 Journal"},"content":{"rendered":"\n<p>In this week&#8217;s productions, I have created a paint software in html and Javascript using Visual Studio Code and been introduced to databases and set up a subdomain to upload my works. <\/p>\n\n\n\n<p>The paint program so far is very basic, allowing you to apply a limited pallet of colours with a limited set of brushes to a boundary on screen<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"985\" height=\"795\" src=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Paint-program-1.0-1.png\" alt=\"\" class=\"wp-image-36\" srcset=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Paint-program-1.0-1.png 985w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Paint-program-1.0-1-300x242.png 300w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Paint-program-1.0-1-768x620.png 768w\" sizes=\"auto, (max-width: 985px) 100vw, 985px\" \/><\/figure>\n\n\n\n<p>I&#8217;m brand new to html and js and though I&#8217;ve developed a slight understanding, I&#8217;m still very unsure about a lot of code &#8211; to work on this issue, I will continue to work in js and html by analysing existing code, researching their purpose using online resources such as w3schools and applying that knowledge to my code.<br>Following this plan, I managed to figure out how to add more brush options by looking up how my previous code worked which helped me a couple create square, triangle and diamond brushes.<br>I also added salmon pink after 100% of user feedback I got requested it (I asked one person).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"822\" height=\"351\" src=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Paint-program-3.0.png\" alt=\"\" class=\"wp-image-37\" srcset=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Paint-program-3.0.png 822w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Paint-program-3.0-300x128.png 300w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Paint-program-3.0-768x328.png 768w\" sizes=\"auto, (max-width: 822px) 100vw, 822px\" \/><\/figure>\n\n\n\n<p>From here, I liked the idea of adding an option for the user to change the brush alpha and size to their liking.<br> For this, I thought the player could use the scrollwheel to change either the alpha or size, or press a button to increase or decrease either of them.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"579\" height=\"175\" src=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Paint-program-4.0.png\" alt=\"\" class=\"wp-image-38\" srcset=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Paint-program-4.0.png 579w, https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-content\/uploads\/2021\/10\/Paint-program-4.0-300x91.png 300w\" sizes=\"auto, (max-width: 579px) 100vw, 579px\" \/><\/figure>\n\n\n\n<p>My first intention was to select either a size or opacity button and be able to adjust it through scrolling up and down with the scrollwheel but I&#8217;m yet to find any sources online about it, so I think I&#8217;ll opt for having a button to increase and decrease either the opacity or the brush size.<br>My current hurdle now is creating the code which responds to the buttons pressed and then changing the necessary variables (brush size and alpha) with that but I&#8217;m very unsure how to go about it yet.<br>Before I further tackle this task, I&#8217;d like to research and practice javascript further by using codecademy to help me with my understanding of the language. I don&#8217;t have much confidence or knowledge with the programming language so far with the complexity of the code so far, which I believe is making particular research for issues trickier to follow by being unsure of what I&#8217;m following.<br>In a later lesson this week, I&#8217;ve tried to add an eraser tool, a line to set the initial brush colour to the first colour swatch for consistency, learned about brush alpha and adjusted the shape brushes so the shapes are larger but the lines are thinner.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this week&#8217;s productions, I have created a paint software in html and Javascript using Visual Studio Code and been introduced to databases and set up a subdomain to upload my works. The paint program so far is very basic, allowing you to apply a limited pallet of colours with a limited set of brushes&hellip; <a class=\"more-link\" href=\"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/2021\/10\/15\/week-1-journal\/\">Continue reading <span class=\"screen-reader-text\">Week 1 Journal<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-bsc1a","entry"],"_links":{"self":[{"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":4,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":39,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions\/39"}],"wp:attachment":[{"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lloydmills.nuacomputerscience.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}