Posts

Learn how draw with p5: A Chinese lantern

Image
  https://editor.p5js.org/hh2871/sketches/diyXJRSYG  Why do I choose lantern? Because lantern is a meaningful symbol for Chinese people. It stands for coming back home or reunion with family. Therefore, Chinese people like hanging out lanterns during traditional festivals as a good blessing.  How do I make it? First, I drew a picture of it.  I broke it down into several parts: the top, the body, the bottom, the fringe, and the decorations(a line and a square). For each part, I used basic shapes, like squares, rectangles, lines. The body part is special because of its irregular shape. Therefore, I used vertex() to sketch it out. The last step is to color different parts. I messed up with coloring since I used color() instead of fill(). And, I learned that every time I want to apply different colors, I need to reset the RGB.

Interactions Between Two Microbits & Connect Scratch with Microbit

Image
  Interactions between two microbits  To make a project that uses communication between two Microbits, I chose a project from the list, which is called Heartbeat beacon. A heart pattern will show up in a microbit when it receives a string signal from another microbit.  At the start, I prepared two microbits: one as a receiver, one as a transmitter. They had the same preset code to set the radio set group and radio set transmit power. For the transmitter, there is a forever loop to transmit radio. For the receiver, there is a trigger to show a heart icon when it receives a string signal.  For fun, I modified the code. After sending a string, the transmitter will send a number. It is still a forever loop. At the same, I added a new code to the receiver, making it react to the number signal showing a smile icon.  It is interesting to compare Makecode with Javascript. I found it a little bit different from js that I learned before. Here are some guesses based on my ...

Get to know more about microbit

Image
Last week, Prof. Dec introduced another creative technology -- microbit.  At the first time when I hold it in my hand, I wondered how much fun this tiny thing could bring. However, I was totally obsessed with its magic power when I started exploring it.  source from https://kidscodejeunesse.org/microbit Beginner Projects  I start from the very first challenge, to show heart image. Then, make a heart beat.  There are many sensors built in microbit, like temperature, action, movement, sound, bearing, etc. I tried many. Here is one example of the light sensor.  Intermediate Project In the intermediate projects, I found an interesting project, which is called electronic pet. When I was a kid, I used to have a tiny machine called tomagotchi, having an electronic pet inside. Therefore, I decided to do this project. They’re small gadgets that you can keep on your keyring. A creature is shown on a simple display. You have to look after it, interacting with it by pr...

Scratch Mini-project: Simple MP4 & Remix

Image
During the past few weeks, I worked on a mini-project using Scratch. This small piece is an MP4 player, to be more specific, it is a music player. I tried to simulate the real user journey in a music player, like turn on and off, next and previous song, pause and start a song, etc.  Week 1  In week 1, I just grabbed some thoughts about the mini-project. I thought of making a storytelling project, demonstrating the great fun brought by MP4 during my childhood. But I decided to make an interactive virtual MP4, which could be more interesting since people can interact with it. Due to the time pressure, I just forked the music player function of the MP4 player. Week 2 Before starting to use Scratch to create the project, I made a plan first to sort out my sort of random thoughts. They are many functions of a music player. I need to decide put which functions into priority. I made a list to map the user interactions in sequence: 1.  turn off/on the device   2. see a centr...

Scratch journey 2: mini game and face sensing

Image
Last week, I explored the Scratch world, trying different blocks and viewing different shared projects. I have learned some fundamental knowledge of Scratch and felt that Scratch is a powerful tool enabling users to make videos and even design games.  MINI GAME This week, I tried to apply what I learned to design a mini-game. Its name is Eat bubble.  For the game concept,  ๐Ÿ”บ the main character is a yellow bubble ๐Ÿ”บ the goal is to eat up the running yellow bubbles and avoid touching bubbles with different colors ๐Ÿ”บ players can control the yellow bubble by pressing arrow keys ๐Ÿ”บlosing three lives means game over For the blocks,  These blocks enable players to control the yellow bubble pressing arrow keys. In this chunk, I set the original position, the size of the yellow bubble. Prior to this, I set the value of two valuables: life and ball. Then, the forever loop takes up the major part. In this loop, I have done many tasks. Task one is to detect the touching with Ba...

Scratch Exploration: Name animation & My Favorite Project

Image
  ๐Ÿ‘พ What is one of my favorite scratch project? As a newcomer to the Scratch world, I enjoy exploring different projects and learn from each other in the community. There are a great number of excellent examples that I can draw on and they cover multiple topics. For me, the sense of community does ensure a better user experience.  The picture above is a screenshot of a project that I like. It is an emoji maker . Users can choose 「eyes」,「mouth」,「element」,「face color」 clicking the corresponding buttons. Users can also get all the steps done with one click on the whirl-like sign. This button helps users choose each part of the emoji randomly. Although the functions are quite simple, the interactive effect is awesome. The video below presents the interactions in the project. ๐Ÿ‘พ Learn about CLONE Looking inside the project, I learned a lot about how a specific effect is realized by the specific arrangement of blocks. The blocks below realize the floating pink decorations in the...

3D design challenge on Beetle Blocks

Image
 ๐Ÿ”ถ Bottle  In the last class, we explored a new tool for 3D design, which is called Beetle Blocks .  We also had a look at a bottle example together to learn how to use the blocks. I found it easy to understand the codes but hard to create one myself. Observing the example, I learned how to start, how to make it build upward, and how to create the z-axis curves. Meanwhile, I tried new things in the code.  The following pictures are the outlook of the bottle that I created using Beetle Blocks.  Inside the bottle  The bottle starts from the bottom. It is a hexagon. I used loop here and changed the value of move each loop.  Outside the bottle  What is special is the spiral structure. The beautiful curves were created by changing the angle slightly. For the bottom, the beetle rotates 60 degrees each time. For the body, it rotates 59.899 degrees each time. See more details here  http://beetleblocks.com/run/#present:Username=HainesWong&Project...