top of page
  • Writer's pictureTingting F

DES240#A2

Updated: Sep 25, 2021

SDGs--Good Health and Well-Being

The prevalence of obesity among adults aged 15+ was 30.9 percent, which corresponds to an estimated 1.24 million adults.


citation: Ministry of Health. 2020. Annual Data Explorer 2019/20: New Zealand Health Survey [Data File]. URL: https://minhealthnz.shinyapps.io/nz-health-survey-2019-20-annual-data-explorer/


Research:


What cause this statistics?

Acquired causes:

Calories

Poor diet and lifestyle

Lack of physical activity


Other cause:

Gender

Region, race

Economy

Medical reasons

Genetic factors


Sketches:


Design brief:

Through the investigation, I have found out the reasons that cause the rise in the adults obesity rate in New Zealand. Actually, many obese patients have not realized that their obesity is caused by ingesting too many calories, poor living and eating habits and lack of exercise, expect for some factors hard to change, such as gene, gender, financial state and medication use. Obesity caused by these causes can be improved and controlled by changing daily lifestyle, doing more exercise and following the doctor’s advice, while it takes a lot of effort and the patients must have a strong will.

In the design, the X-ray machine is used, which is directly related to medicine and deeply connected with the inside of the human body. By scanning the bodies of different groups of people (healthy people and obese people) with X-ray machines, it was found that the obese patients were all filled with unhealthy food in their stomachs, while the healthy people had a balanced and healthy diet. In this way, I want to make more obese patients aware of their own health problems. Hopefully, they can have a healthy body once again.


Final:


Code:

PImage[] pic=new PImage[18];

float x=-300;

float y=300;

float z=900;

float step=2;

boolean dark=false;

void setup() {

size(1000, 1000);

background(212, 205, 205);

for (int i=0; i<pic.length; i++)

{

pic[i]=loadImage(i+1+".png");

}

pic[1].loadPixels();

pic[11].loadPixels();

}

void draw() {

background(212, 205, 205);

fill(51, 69, 76);

rect(270, 150, 470, 650);

fill(255);

if (frameCount%10==0) {

dark=!dark;

}

if (dark==true) {

image(pic[5], 470, 70, 60, 60);

} else {

image(pic[6], 470, 70, 60, 60);

}


if (x<width*0.6&&x>width*0.12) {

if (dark==true) {

image(pic[7], 470, 70, 60, 60);

} else {

image(pic[8], 470, 70, 60, 60);

}

}



if (x<width*0.725) {

int pixelNum = (int)(map(x, width*0.725, width*0.58, 0, pic[0].width));

if (pixelNum>=pic[0].width) {

pixelNum=pic[0].width;

}

for (int i = 0; i < pixelNum; i++) {

for (int j=0; j<pic[0].height; j++) {

pic[0].pixels[j*pic[0].width+i] = pic[1].pixels[j*pic[0].width+i];

}

}



if (x<width*0.25) {

pixelNum = (int)(map(x, width*0.25, width*0.105, 0, pic[0].width));

if (pixelNum>=pic[0].width) {

pixelNum=pic[0].width;

}

for (int i = 0; i < pixelNum; i++) {

for (int j=0; j<pic[0].height; j++) {

pic[0].pixels[j*pic[0].width+i] = pic[2].pixels[j*pic[0].width+i];

}

}

}

pic[0].updatePixels();

}

image(pic[0], x, 300);

if (x<width*0.465&&x>width*0.4) {

image(pic[13], x-150, height*0.26);

}


if (y<width*0.725) {

int pixelNum1 = (int)(map(y, width*0.725, width*0.6, 0, pic[9].width));

if (pixelNum1>=pic[9].width) {

pixelNum1=pic[9].width;

}

for (int i = 0; i < pixelNum1; i++) {

for (int j=0; j<pic[9].height; j++) {

pic[9].pixels[j*pic[9].width+i] = pic[10].pixels[j*pic[9].width+i];

}

}


if (y<width*0.24) {

pixelNum1 = (int)(map(y, width*0.240, width*0.140, 0, pic[9].width));

if (pixelNum1>=pic[9].width) {

pixelNum1=pic[9].width;

}

for (int i = 0; i < pixelNum1; i++) {

for (int j=0; j<pic[9].height; j++) {

pic[9].pixels[j*pic[9].width+i] = pic[11].pixels[j*pic[9].width+i];

}

}

}

pic[9].updatePixels();

}

image(pic[9], y, 220);

if (y<width*0.475&&y>width*0.4) {

image(pic[12], y-150, height*0.26);

}

if (z<width*0.725) {

int pixelNum2 = (int)(map(z, width*0.725, width*0.62, 0, pic[14].width));

if (pixelNum2>=pic[14].width) {

pixelNum2=pic[14].width;

}

for (int i = 0; i < pixelNum2; i++) {

for (int j=0; j<pic[14].height; j++) {

pic[14].pixels[j*pic[14].width+i] = pic[15].pixels[j*pic[14].width+i];

}

}


if (z<width*0.245) {

pixelNum2 = (int)(map(z, width*0.245, width*0.142, 0, pic[14].width));

if (pixelNum2>=pic[14].width) {

pixelNum2=pic[14].width;

}

for (int i = 0; i < pixelNum2; i++) {

for (int j=0; j<pic[14].height; j++) {

pic[14].pixels[j*pic[14].width+i] = pic[17].pixels[j*pic[14].width+i];

}

}

}

pic[14].updatePixels();

}

image(pic[14], z, 260);

if (z<width*0.475&&z>width*0.4) {

image(pic[16], z-150, height*0.28);

}



if (x<-770) {

x+=1800;

delay(2500);

}

if (y<-770) {

y+=1800;

delay(2500);

}

if (z<-770) {

z+=1800;

delay(2500);

}

x-=step;

y-=step;

z-=step;

image(pic[4], 0, 58);

image(pic[3], 0, 0);

}

10 views0 comments

Recent Posts

See All

Comments


bottom of page