Help! Project 14 Tweak the Logo code error!

Hello!

I am a beginner starting out with the Arduino Starter Kit. While doing project 14, Tweak the Logo, there has been a programing error that I am having trouble fixing. This is my program:

void loop() {
Serial.write(analogRead(A0)/4);
delay(1);
}

import processing.serial.*;
Serial myPort;

PImage logo;

int bgcolor = 0; // change bg colour of the image

void setup() {
colorMode(HSB, 255); // maximum value related to HSB

logo = loadImage("http://arduino.cc/logo.png"); // download image
size(logo.width, logo.height);

println("Arduino serial ports");
println(Serial.list());

myPort =
new Serial(this, Serial.list()[1411], 9600);
}
void draw() {
if myPort.available() > 0) {
bgcolor) = myPort.read();
println(bgcolor);
}
background(bgcolour, 255, 255);
image(logo, 0, 0,);
}

On the line "import processing.serial.*;", the app is saying import does not name a type. This is the error message: "'import' does not name a type; did you mean 'qsort'?"
Any help on this would be truly appreciated!
Thankyou!

Welcome.
You need to format your code so people can help you better.
Please read this post and consider editing your post:

That code is not a sketch that can run on an Arduino.

I've never used Processing so can't advise properly but Processing code runs on a PC.