1. Homepage
  2. Programming
  3. SHDH2044 Digital Visualisation in New Media - Assignment 1: White dots on big black dots

SHDH2044 Digital Visualisation in New Media - Assignment 1: White dots on big black dots

Engage in a Conversation
Hong KongHong Kong PolyU HKCCSHDH2044Digital Visualisation in New Media

SHDH2044 Digital Visualisation in New Media CourseNana.COM

Assignment 1 (Programming)
CourseNana.COM


CourseNana.COM


CourseNana.COM

Introduction CourseNana.COM

You are given an incomplete program of Processing and you are told to complete it by filling in appropriate codes to generate requested visual effects randomly CourseNana.COM

  CourseNana.COM

Basic Visual Effects (70%) CourseNana.COM

The basic requirement of the visual effect is to randomly position small white dots on top of big black dots. The black dots are placed next to each other within a window with size 300px x 300px and they form a 10 x 10 grid structure. The white dots then appear on top of the black dots and each white dot should not exceed the area of the black dot that it overlaps on. CourseNana.COM

  CourseNana.COM

This part covers all the codes in the given program except the one in the function of calculateSizeMini(), i.e. except the codes in line 66-78. Once you complete all the codes except line 66-78 correctly, you should be able see the effect above. CourseNana.COM

  CourseNana.COM

To test the result of basic visual effect of your program, you can consider disable the codes related with the function of calculateSizeMini() first (i.e. to disable line 54, and line 66-78 by turning them to comment) which is a function for advanced visual effect in the next phase. If you don’t do so, you may not be able to run the program for testing. CourseNana.COM

  CourseNana.COM

Advanced Visual Effects (30%) CourseNana.COM

By finishing the function of calculateSizeMini(), you should be able to develop a method to manipulate the size of the white dots. The closer a white dot locates toward the center, the bigger it is and vice versa. You should try to solve this problem by simple coding. Two examples are shown in the following: CourseNana.COM

Plagiarism CourseNana.COM

                        You must write the program on your own. Do not copy codes from any other sources including your classmates. If you are found to copy code from others, you will receive no mark in this assignment. CourseNana.COM

  CourseNana.COM

Randomization CourseNana.COM

Please make sure that the visual effects generated by your program can be randomly change in every time the program is executed. CourseNana.COM

  CourseNana.COM

To achieve randomization, use the function of random(). By providing two input parameter A and B, random() should return a random number (in floating point) in between A and B where A and B can be integer or floating point and can be either positive number or negative number. In short, the usage of random() is: CourseNana.COM

            float myRandomNum = random(A, B); CourseNana.COM

  CourseNana.COM

Submission CourseNana.COM

Working group    one-person CourseNana.COM

Deadline                        Class 201A - Wednesday of week 7, Mar 15, 6:00 p.m. CourseNana.COM

Class 201B,C,D - Thursday of week 7, Mar 16, 6:00 p.m. CourseNana.COM

  CourseNana.COM

Submit the pde file of processing to moodle. A submission folder will be ready to collect your file before the deadline CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
Hong Kong代写,Hong Kong PolyU HKCC代写,SHDH2044代写,Digital Visualisation in New Media代写,Hong Kong代编,Hong Kong PolyU HKCC代编,SHDH2044代编,Digital Visualisation in New Media代编,Hong Kong代考,Hong Kong PolyU HKCC代考,SHDH2044代考,Digital Visualisation in New Media代考,Hong Konghelp,Hong Kong PolyU HKCChelp,SHDH2044help,Digital Visualisation in New Mediahelp,Hong Kong作业代写,Hong Kong PolyU HKCC作业代写,SHDH2044作业代写,Digital Visualisation in New Media作业代写,Hong Kong编程代写,Hong Kong PolyU HKCC编程代写,SHDH2044编程代写,Digital Visualisation in New Media编程代写,Hong Kongprogramming help,Hong Kong PolyU HKCCprogramming help,SHDH2044programming help,Digital Visualisation in New Mediaprogramming help,Hong Kongassignment help,Hong Kong PolyU HKCCassignment help,SHDH2044assignment help,Digital Visualisation in New Mediaassignment help,Hong Kongsolution,Hong Kong PolyU HKCCsolution,SHDH2044solution,Digital Visualisation in New Mediasolution,