ITP 140 Mobile App Technologies. Colors

Similar documents
Trident Z Royal. Royal Lighting Control Software Guide

Objectives. Connecting with Computer Science 2

Bits, bytes, binary numbers, and the representation of information

Data Representation 1

Canvas Tips and Techniques

But I know what most of you will do: use a calculator to convert; that's fine, IF you understand the theory.

This guide helps you understand how operations available on the printer can be used to adjust and customize color output.

Octal & Hexadecimal Number Systems. Digital Electronics

Game Programming. Bing-Yu Chen National Taiwan University

NUMERIC SYSTEMS USED IN NETWORKING

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

What is it? How does it work? How do we use it?

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception

Color quality guide. Quality menu. Color quality guide. Page 1 of 6

COE 202- Digital Logic. Number Systems II. Dr. Abdulaziz Y. Barnawi COE Department KFUPM. January 23, Abdulaziz Barnawi. COE 202 Logic Design

1.1 Data representation

Chapter 3: Number Systems and Codes. Textbook: Petruzella, Frank D., Programmable Logic Controllers. McGraw Hill Companies Inc.

Number representations

Introduction to Computer Science (I1100) Data Storage

The Elements of Colour

BINARY SYSTEM. Binary system is used in digital systems because it is:

Fall 2015 Dr. Michael J. Reale

Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 1: Basic Concepts. Chapter Overview. Welcome to Assembly Language

COMP Overview of Tutorial #2

Lecture 12 Color model and color image processing

Get to Know your LED Bulb. Quick start. LED Bulb (User Guide) Modified on: Sun, 18 Dec, 2016 at 4:09 PM. Make any light a smart light.

Inf2C - Computer Systems Lecture 2 Data Representation

CS452/552; EE465/505. Color Display Issues

Color Graphic Novel Guide


Day 1: Introduction to MATLAB and Colorizing Images CURIE Academy 2015: Computational Photography Sign-Off Sheet

LED Bulb Manual. Familiarize yourself with your LED Bulb.

World Inside a Computer is Binary

CHAPTER V NUMBER SYSTEMS AND ARITHMETIC

Physical Color. Color Theory - Center for Graphics and Geometric Computing, Technion 2

Guide to Allen verifig

User. Application program. Interfaces. Operating system. Hardware

Digital Computers and Machine Representation of Data

Adobe Illustrator CS Design Professional CREATING TEXT AND GRADIENTS

The Display pipeline. The fast forward version. The Display Pipeline The order may vary somewhat. The Graphics Pipeline. To draw images.

UNIT 7A Data Representation: Numbers and Text. Digital Data

Visible Color. 700 (red) 580 (yellow) 520 (green)

COMP 102: Computers and Computing

Review of Data Representation & Binary Operations Dhananjai M. Rao CSA Department Miami University

Positional notation Ch Conversions between Decimal and Binary. /continued. Binary to Decimal

2. Integers. 9 * celsius / Celsius to Fahrenheit. Precedence. (9 * celsius / 5) + 32

VC 10/11 T4 Colour and Noise

Math-2. Lesson 3-1. Equations of Lines

MACHINE LEVEL REPRESENTATION OF DATA

Digital Systems COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

COE 202: Digital Logic Design Number Systems Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Fiery Color Server. Fiery Color Reference

Slide Set 1. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Winter Notes - Unit 4. hundreds.

Many information systems are operated every day by people who couldn t tell you the

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-278: Digital Logic Design Fall Notes - Unit 4. hundreds.

Module 1: Information Representation I -- Number Systems

Chapter Overview. Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 1: Basic Concepts. Printing this Slide Show

Slide Set 1. for ENEL 339 Fall 2014 Lecture Section 02. Steve Norman, PhD, PEng

ENE 334 Microprocessors

FLEET LOGO USAGE AND STANDARDS INNOVA BRANDING STANDARDS 2015 GUIDE

the gamedesigninitiative at cornell university Lecture 17 Color and Textures

Fundamentals of Website Development

Digital Image Processing. Introduction

CDS Computing for Scientists. Final Exam Review. Final Exam on December 17, 2013

Reading. 2. Color. Emission spectra. The radiant energy spectrum. Watt, Chapter 15.

the gamedesigninitiative at cornell university Lecture 16 Color and Textures

Machine Architecture and Number Systems CMSC104. Von Neumann Machine. Major Computer Components. Schematic Diagram of a Computer. First Computer?

Numerical Representations On The Computer: Negative And Rational Numbers

EMCORE Brand and Logo Use Guidelines

Hexadecimal Numbers. Journal: If you were to extend our numbering system to more digits, what digits would you use? Why those?

Visual Design and Imaging Alignment

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Digital Fundamentals

Colour and Number Representation. From Hex to Binary and Back. Colour and Number Representation. Colour and Number Representation

CS 31: Intro to Systems Binary Representation. Kevin Webb Swarthmore College September 6, 2018

Color Correction Utility

2. Integers. 9 * celsius / Celsius to Fahrenheit. Precedence. (9 * celsius / 5) + 32

Color. making some recognition problems easy. is 400nm (blue) to 700 nm (red) more; ex. X-rays, infrared, radio waves. n Used heavily in human vision

5 Control Reference! "! # $ # % " &

IT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1

CS 31: Intro to Systems Binary Representation. Kevin Webb Swarthmore College January 27, 2015

Data Representation and Binary Arithmetic. Lecture 2

Illumination and Shading

Final Labs and Tutors

Numerical Representations On The Computer: Negative And Rational Numbers

2. Integers. 9 * celsius / Celsius to Fahrenheit. Precedence. (9 * celsius / 5) + 32

Data Representation From 0s and 1s to images CPSC 101

Chapter 2 Exercises and Answers

Quick Guide for Photoshop CC Basics April 2016 Training:

data within a computer system are stored in one of 2 physical states (hence the use of binary digits)

Logic and Computer Design Fundamentals. Chapter 1 Digital Computers and Information

Lecture #13. Point (pixel) transformations. Neighborhood processing. Color segmentation

Objective 1.02 Understand Numbering Systems

An Introduction to Calibration and Device Profiling. This article is supported by...

[301] Bits and Memory. Tyler Caraza-Harter

Digital Logic. The Binary System is a way of writing numbers using only the digits 0 and 1. This is the method used by the (digital) computer.

umber Systems bit nibble byte word binary decimal

Course Schedule. CS 221 Computer Architecture. Week 3: Plan. I. Hexadecimals and Character Representations. Hexadecimal Representation

Logo & Icon. Fit Together Logo (color) Transome Logo (black and white) Quick Reference Print Specifications

Transcription:

ITP 140 Mobile App Technologies Colors

Colors in Photoshop RGB Mode CMYK Mode L*a*b Mode HSB Color Model 2

RGB Mode Based on the RGB color model Called an additive color model because adding all the colors together produces white which reflects all light back to the eye RGB colors are created by setting red, green and blue to values between 0-255 When all three values are 0, black is produced. When all three values are 255, is produced. 3

Color RGB Color Model Red Green Blue (0, 0, 0) is black (255, 255, 255) is (255, 0, 0) is red (0, 255, 0) is green (0, 0, 255) is blue (255, 255, 0) is yellow (0, 255, 255) is cyan (255, 0, 255) is magenta 4

CMYK Mode Base colors are (C), (M), (Y) and black (K is used to distinguish it from B for blue) Theoretically, C, M, and Y combined should produce pure black Called a subtractive color model In reality, pure black is not produced with this combination of inks so black is included White is produced when all values are set to 0% Used in images that will be output to a print medium using ink 5

L*a*b Mode Based on the human perception of color Designed to be device-independent Consistent color viewed on a monitor screen or printed 3 color components L (lightness component) is the brightness value and ranges from 0 to 100 a component (green-red axis) ranges from +127 to -128 b component (blue-yellow axis) and ranges from +127 to -128 Used internally by Photoshop in converting from one color mode to another 6

HSB Color Model A color model, not a color mode Provides an intuitive way to mix and adjust colors HSB stands for Hue, Saturation, and Brightness A hue is a shade of color such as orange, blue, purple Saturation determines the strength of the hue Brightness is the lightness/darkness of a color 7

What's the #? The value after the # is a hexadecimal number 8

Decimal Our numbering system is decimal Dec means 10 Example a decathlon has 10 events The unique 10 digits that make up the decimal numbering system are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 We say that decimal is base 10 9

Example of Decimal 231 = 200 30 1 = 2 * 100 3 * 10 1 * 1 = 2 * 10 2 3 * 10 1 1 * 10 0 10

Binary Computers use magnetic memory (or transistors) for storing information Smallest capacity for storage is a single magnetic charge, either positive or negative Positive charge means a 1 Negative charge means a 0 The 2 digits that we use for binary are 0s & 1s The digits in a binary number are called bits (short for binary digit) Binary is base 2 Binary 1000 0100 0010 0001 Exponent 2 3 2 2 2 1 2 0 Decimal 8 4 2 1 11

Example of Binary 1010 = 1 * 2 3 = 0 * 2 2 1 * 2 1 0 * 2 0 1 * 8 0 * 4 1 * 2 0 * 1 = 8 0 2 0 = 10 12

Binary (4 bit) to Decimal Binary à Decimal 0000 0+0+0+0 0 0001 0+0+0+1 1 0010 0+0+2+0 2 0011 0+0+2+1 3 0100 0+4+0+0 4 0101 0+4+0+1 5 0110 0+4+2+0 6 0111 0+4+2+1 7 Binary à Decimal 1000 8+0+0+0 8 1001 8+0+0+1 9 1010 8+0+2+0 10 1011 8+0+2+1 11 1100 8+4+0+0 12 1101 8+4+0+1 13 1110 8+4+2+1 14 1111 8+4+2+0 15 With 4 bits, we get the values of 0 15 If the binary number ends with a 1, it is odd 13

Binary (8 bit) to Decimal Binary à Decimal 00000000 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 0 00001111 0 + 0 + 0 + 0 + 8 + 4 + 2 + 1 15 00010000 0 + 0 + 0 + 16 + 0 + 0 + 0 + 0 16 00011111 0 + 0 + 0 + 16 + 8 + 4 + 2 + 1 31 00100000 0 + 0 + 32 + 0 + 0 + 0 + 0 + 0 32 00111111 0 + 0 + 32 + 16 + 8 + 4 + 2 + 1 63 01000000 0 + 64 + 0 + 0 + 0 + 0 + 0 + 0 64 01111111 0 + 64 + 32 + 16 + 8 + 4 + 2 + 1 127 10000000 128 + 0 + 0 + 0 + 0 + 0 + 0 + 0 128 11111111 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 255 14

Bits & Bytes With 8 bits (binary digits), we get the decimal values of 0 255 8 bits = 1 byte Remember the RGB color mode Each color has a value from 0 to 255 We use 8 bits (or 1 byte) for each color 8 x 3 (3 colors) = 24 bits to store color 15

Reverse of Binary to Digital Decimal to Binary 25 10 = 16 + 8 + 0 + 0 + 1 = 2 4 + 2 3 + 0 + 0 + 2 0 = 1 1 0 0 1 2 16

Repeat Division Decimal to Binary 25 / 2 = 12 + remainder of 1 (LSB) 12 / 2 = 6 + remainder of 0 6 / 2 = 3 + remainder of 0 3 / 2 = 1 + remainder of 1 1 / 2 = 0 + remainder of 1 (MSB) 25 10 = 1 1 0 0 1 2 LSB = Least Significant Bit MSB = Most Significant Bit Algorithm of Repeat Division 17

Geek Joke 18

Hexadecimal We often represent computer data in hexadecimal hex = 6 and dec = 10 hexadecimal = 6 + 10 = 16 It is base 16 The unique 16 digits are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f 0 9 and a f (or A F) Every 4 bits is a single hex digit Since 4 bits can represent numbers from 0 to 15 19

Bin (4 bit) à Dec & Hex Binary B à D Decimal Hex 0000 0+0+0+0 0 0 1010 8+0+2+0 10 A 1011 8+0+2+1 11 B 1100 8+4+0+0 12 C 1101 8+4+0+1 13 D 1110 8+4+2+0 14 E 1111 8+4+2+1 15 F 20

Bin (8 bit) à Hex & Dec Binary B à H Hex B à D Dec 0001 0000 0+0+0+1 0+0+0+0 10 0+ 0+ 0+16+0+0+0+0 16 0001 1111 0+0+0+1 8+4+2+1 1F 0+ 0+ 0+16+8+4+2+1 31 0010 0000 0+0+2+0 0+0+0+0 20 0+ 0+32+ 0+0+0+0+0 32 0011 1111 0+0+2+1 8+4+2+1 3F 0+ 0+32+16+8+4+2+1 63 0100 0000 0+4+0+0 0+0+0+0 40 0+64+ 0+ 0+0+0+0+0 64 0101 1010 0+4+0+1 8+0+2+0 5A 0+64+ 0+16+8+0+2+0 90 0111 1111 0+4+2+1 8+8+2+1 7F 0+64+32+16+8+4+2+1 127 1000 0000 8+0+0+0 0+0+0+0 80 128+ 0+ 0+ 0+0+0+0+0 128 1100 0010 8+4+0+0 0+0+2+0 C2 128+64+ 0+ 0+0+0+2+0 194 1111 1111 8+4+2+1 8+4+2+1 FF 128+64+32+16+8+4+2+1 255 21

Bits, Bytes & Hex Combine 8 bits, and we have a byte 4 bits is a single hex digit Examples: 0000 binary = 0 hex, 1111 binary = F hex 8 bits = 2 hex digits Easy to represent a byte in hexadecimal Examples: 56 10 = 00111000 2 = 38 16 255 10 = 11111111 2 = FF 16 22

Computer Graphics Traditionally, computers use a combination of 3 colors (red, green, blue) to represent the color of every pixel on the screen Every pixel has an intensity equal to one byte for every color called the RGB color Pixel = smallest unit for representing an image on a computer dots on the screen Smallest intensity for a color in a pixel is 0000 0000 (8 bits) Largest intensity for a color in a pixel is 1111 1111 (8 bits) Black = #000000 #FFFFFF Everything with colors on a computer can be done with math! To lighten a color, simply add to the intensity, to darken simply decrease the intensity 23