Unit  2  Lesson  4     Name(s)__________________________________________________  Period  ______  Date  ______________      

Activity Guide - Encoding Color Images   Objectives:     ● Practice  with  the  color  pixelation  tool.   ● Use  the  Pixelation  Widget  to  recreate  specific  colors.   ● Recreate  simple  color  images  and  describe  the  difference  when  using  6  or  12  bits  per  pixel.     ● Encode  colors  with  hex.     Directions:       Go  to  Code  Studio  -­  Find  this  lesson  on  Code  Studio   The  tasks  below  follow  the  guided  sequence  in  Code  Studio  which  has  tutorial  videos  followed  by  specific  tasks.   The  purpose  of  this  activity  is  only  to  become  familiar  with  the  color  pixelation  tool,  and  to  practice  a  little  bit,  in   order  to  be  comfortable  enough  to  start  the  ​favicon  assignment.  

Step 1: 3-‐bit color Tutorial  Video:  ​How  to  use  the  pixelation  widget  to  control  color.   Task  1:​  Fill  in  the  last  two  pixels  with  the  missing  colors   Problem:  fill  in  the  last  two  pixels.     Optional  Practice:  change  the  pixel  data  so  that  the  blue  and  yellow  pixels   exchange  locations  in  the  image.    If  you  mess  up,  you  can  always  re-­copy-­paste   the  bits  from  this  example.  

Step 2: 6-‐bit color Tutorial  Video:  ​more  bits  per  pixel  for  more  colors   Task  2:  ​Experiment  with  6-­bit  color   Set  bits/pixel  to  6  and  experiment  with  each  of  the  R,  G,  and  B  values.    At  6   bits/pixel,  it  means  each  color  channel  has  2  bits  assigned  to  it,  so  there  are  4   possible  shades  of  each  of  R,  G,  and  B.    To  start  you  are  presented  with  the   image  at  right.  

Step 3: 12-‐bit color and hex Tutorial  Video:  ​Using  hex  to  type  bits  more  quickly   Task  3:  ​Experiment  with  Hex     Make  a  4x4  image  with  ​ ​ bits-per-pixel set to 12  and  the  tool  into  ​hexadecimal mode. NOTE:  Using  12-­bits-­per-­pixel  (4096  colors!)  is  convenient  because  12  bits  maps  to  exactly  3  hex   digits,  one  digit  each  for  RGB.  For  example,  to  make  a  teal  color  (shown  right)  whose  12-­bit  value   is:  001110101011    We  can  represent  a  12-­bit  color  in  hex  much  more  easily  as  hex:  ​3AB​.    Here  is   the  breakdown:     binary     hex        

R   0011   3  

G   1010   A  

B   1011     B  

      To  make  a  darker  shade,  just  choose  a  smaller  hex  digit  for  the  channel  of  color  you  want  to  affect,  such  as  3A5   (which  turns  the  amount  of  blue  light  down).     Recall:  When  writing  a  hex  number  we  frequently  preface  it  with  a  “#”  symbol  or  “0x”.  So  hex:  3AB,  would  be   written  #3AB  or  0x3AB.    This  is  to  avoid  confusion  when  hex  numbers  have  only  decimal  digits.    101  is  a  very   different  number  from  #101.     Create  an  image  that  looks  something  like  picture  shown  at  right  in  which     ● row  1  -­  displays  4  different  “reddish”  colors  (with  red  being  the   dominant  color).     ● row  2  -­  display  should  show  4  different  “greenish”  colors   ● row  3  -­  should  show  4  “bluish”  colors   ● row  4  -­  show  only  shades  of  gray           Questions:       1. Rewrite  this  string  of  numbers  from  raw  format  to  readable  format,  and  identify  or  label  the  sections  of   bits.  

000000100000001000000011010010101010     0000  0010   0000  0010   0000  0011   010  010     101  010       2. How  many  more  colors  are  available  with  12  bits-­per-­pixel  than  6  bits-­per-­pixel?     6  bits  per  pixel  has  64  colors    and  12  bits  per  pixel  has  4096  colors       3. What  happens  if  you  have  you  an  image  that  has  6  bits-­per-­pixel  and  you  change  it  to  12?       The  this  would  make  the  image  smaller           4. A  digital  artist  comes  up  to  you  and  says,  “Help!  I  need  a  12-­bit  color  that’s  just  a  little  bit  greener  than   #79B.”    ​What  would  you  suggest  and  why?      

I  would  say  look  at  the  ​RGB  119,  153,  187  and  raise  the  153  to  any  number  that  you  desire  to   make  it  more  green.        

Activity Guide - Encoding Color Images

the bits from this example. Step 2: 6-‐bit color. Tutorial Video: ​more bits per pixel for ... For example, to make a teal color (shown right) whose 12-bit value is: 001110101011 We can represent a 12-bit color in ... This is to avoid confusion when hex numbers have only decimal digits. 101 is a very different number from #101.

125KB Sizes 7 Downloads 299 Views

Recommend Documents

Geometry Motivated Variational Segmentation for Color Images
In Section 2 we give a review of variational segmentation and color edge detection. .... It turns out (see [4]) that this functional has an integral representation.

Deblurring of Color Images Corrupted by Impulsive Noise
Using the variational framework, we consider the 1 fi- ... Science Foundation, and in part by MUSCLE: Multimedia Understanding ... L. Bar is with the Department of Electrical and Computer Engineering, Uni- ...... Alexander Brook received the M.Sc. de

Bilateral Filtering for Gray and Color Images
[email protected]. Abstract .... A low-pass domain filter applied to image f x produces an output ... font for f and h emphasizes the fact that both input and.

Physical Activity - The Community Guide
College-Based Health Education and Physical Education. 96 .... counseling; risk factor screening and education at worksites, schools, and community ...... tech, in-plant, cardiovascular disease risk identification and modification program. Am.

Physical Activity - The Community Guide
reduced risk of cardiovascular disease,4–9 ischemic stroke,10,11 type 2 (non- ..... Other benefits of these programs included small improvements in flexibility ..... Fielding, MD, MPH, MBA, Los Angeles Department of Health Services, University ...

Physical Activity - The Community Guide
Behavioral and Social Approaches to Increasing Physical Activity ... Methods used for the reviews are summarized in Chapter 10. Specific meth- ..... media campaigns alone in increasing physical activity or improving fitness. • Evidence was ...

Zoltan-Szabo-s-Color-By-Color-Guide-To-Watercolor.pdf
only get PDF formatted books to download which are safer and virus-free you will find an ... Zoltan Szabo's Color-By-Color Guide To Watercolor PDF eBook. 1.

Geometric Encoding
troid and approximate length of the space is a. 85 summary parameter derived from the boundaries. 86. Thus, global geometric coding with respect to the. 87 principal axis would involve encoding the correct. 88 location during training as the location

Student Activity Guide - Super Health Super You
In this activity, students learn about diabetes from a medical professional. Teachers may invite the school nurse, a doctor, nurse practitioner, EMT, or other health professional with experience dealing with diabetes to visit the class. This health p

Student Activity Guide - Super Health Super You
Follow up with a thank you note or card from your students. Make sure everyone signs ... member, etc., to discuss a diagnosis and treatment plan with feedback from the visiting health practitioner. 3. ... services to enhance health. • Standard 4: .

Acorn Youth Activity Guide .pdf
Sign in. Page. 1. /. 27. Loading… Page 1 of 27. Page 1 of 27. Page 2 of 27. Page 2 of 27. Page 3 of 27. Page 3 of 27. Acorn Youth Activity Guide .pdf. Acorn ...

AP BIO ACTIVITY GUIDE ANSWERS.pdf
QXD 12/12/07 2:10 AM Page iii. Page 3 of 420. AP BIO ACTIVITY GUIDE ANSWERS.pdf. AP BIO ACTIVITY GUIDE ANSWERS.pdf. Open. Extract. Open with.

pdf file encoding
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. pdf file encoding.

Phonics Encoding Decoding.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Phonics ...

pdf change encoding
Loading… Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. pdf change encoding. pdf chan

pdf encoding problem
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. pdf encoding problem. pdf encoding problem. Open. Extract.

Narrow Bus Encoding for Low Power Systems
Abstract. High integration in integrated circuits often leads to the prob- lem of running out of pins. Narrow data buses can be used to alleviate this problem at the cost of performance degradation due to wait cycles. In this paper, we address bus co

Simultaneous Encoding of Potential Grasping ... - Semantic Scholar
stand how the brain selects one move- ment plan when many others could also accomplish the same result. ... ther a precision or a power grasp. When handle orientation and grip type informa- tion were concurrently ... rons encoding power or precision

JPEG2000 Image Encoding & Decoding -
Jan 14, 2015 - parameters which more closely mimic Kakadu. Following compression, each tool was used to decompress each JP2-encoded image back to.

Encoding Demonstrations and Learning New ...
Encoding Demonstrations and Learning New Trajectories using Canal Surfaces. ∗. S. Reza ... are fast and can be used in an online manner, but the repro- ..... ing the distance from each point on the directrix to the cor- responding points on the ...