CISC 110 Lecture Notes - Lecture 3: Quadrilateral, Grayscale

59 views4 pages

Document Summary

Week 1 lecture 3 in a fill (0,0,0) 1st 0 is red, 2nd is green, 3rd is blue. By changing the colors of pixels, you can create an image. *the max number you can go up to for colors is 255. However, this means you can have 256 shades of a color. This sets up the (cid:862)displa(cid:455) wi(cid:374)dow(cid:863) for (cid:455)our sketch. The point must be within your canvas e. g. Point (50, 50) poi(cid:374)t (0 (cid:454) 100, 0 (cid:455) 100) for a canvas of size (100, 100) X1, y1 = the pixel that starts your line. X2, y2 = the last pixel of your line. X2, y1 = second set of coordinates your line will connect to these second x3, y3 = final set of coordinates your line will connect to these third. Quad (x1, y1, x2, y2, x3, y3, x4, y3) X1, y1 = first set of coordinates to start your line.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents