{"id":2674,"date":"2013-07-23T05:56:01","date_gmt":"2013-07-22T19:56:01","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=2674"},"modified":"2013-07-23T05:56:01","modified_gmt":"2013-07-22T19:56:01","slug":"digital-colour-meter-on-mac-laptop-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/digital-colour-meter-on-mac-laptop-tutorial\/","title":{"rendered":"Digital Colour Meter on Mac Laptop Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/DigitalColourMeter\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Digital Colour Meter on Mac Laptop Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/DigitalColourMeter\/DigitalColourMeter.jpg\" title=\"Digital Colour Meter on Mac Laptop Tutorial\" \/><\/a><p class=\"wp-caption-text\">Digital Colour Meter on Mac Laptop Tutorial<\/p><\/div>\n<p>Here is a tutorial that introduces you to Digital Colour Meter application in Mac OS X, which is a tool useful for web development for determining the RGB for a colour of your choosing.<\/p>\n<blockquote><p>DigitalColor Meter is a utility for measuring and displaying the colour values of pixels displayed on the screen of a Macintosh laptop computer.<\/p>\n<p>The utility presents a &#8220;window&#8221; onto the screen which includes a cursor which by default is 1 \u00d7 1 pixel in size. The colour displayed in that pixel is shown as a colour value which may be represented as decimal or hexadecimal RGB triplets, CIE 1931, CIE 1976 or CIELAB triplets or a Tristimulus triplet.<\/p>\n<p>The displayed colour could be copied either as a solid colour or as the colour value which represents it, to be used in other applications (for instance an RGB triplet may be used in a colour specification to be used on a World Wide Web page).<\/p><\/blockquote>\n<p>Let&#8217;s see some simple <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/DigitalColourMeter'>Digital Colour Meter application usage in Mac OS X<\/a>.<\/p>\n<p>Am sure you can imagine how powerful this functionality is, and what a great tool it can be for practical aspects of web design where you are looking to discover the details of that elusive colour you like.<\/p>\n<p>Here is a useful <a target=_blank title='Hexidecimal Javascript' href='http:\/\/www.roselab.jhu.edu\/~raj\/MISC\/dechexjs.html'>link<\/a> for usage purposes.<\/p>\n<p>So, to use the output of Digital Colour Meter on a Mac laptop see some (there are lots of other approaches also) HTML usage (another great <a target=_blank title='HTML colour information from w3schools' href='http:\/\/www.w3schools.com\/html\/html_colors.asp'>link<\/a> is) below ( where tohex3(185,127,206) is &#8216;#897FCE&#8217; ):<\/p>\n<ul>\n<li>\n<p style=\"color:rgb(185,127,206);\">Direct HTML usage via Color RGB method via style=&#8221;color:rgb(185,127,206);&#8221;<\/p>\n<\/li>\n<li>\n<p id=\"mycpx\">Javascript DOM usage via Color HEX method for HTML element with id mycpx via (for example) &lt;script type=&#8217;text\/javascript&#8217;&gt; var omycpx=document.getElementById(&#8216;mycpx&#8217;); omycpx.style.color=tohex3(185,127,206); &lt;\/script&gt;<\/p>\n<p><script type='text\/javascript'> var omycpx=document.getElementById('mycpx'); omycpx.style.color=tohex3(185,127,206); <\/script><\/li>\n<li>\n<p class=\"mypclass\">Direct usage via Color RGB method for HTML element with class mypclass via CSS &lt;style&gt; .mypclass { color:rgb(185,127,206); }&lt;\/style&gt;<\/p>\n<\/li>\n<li>\n<p id=\"mypid\">Direct usage via Color RGB method for HTML element with id mypid via CSS &lt;style&gt; .mypclass { color:rgb(185,127,206); }&lt;\/style&gt;<\/li>\n<li>\n<hr class='ybi'><\/li>\n<li>\n<p style=\"color:black;background-color:rgb(185,127,206);\">Direct HTML usage via Color RGB method via style=&#8221;background-color:rgb(185,127,206);color:black;&#8221;<\/p>\n<\/li>\n<li>\n<p id=\"mycp22\">Javascript DOM usage via Color HEX method for HTML element with id mycp22 via (for example) &lt;script type=&#8217;text\/javascript&#8217;&gt; var omycp22=document.getElementById(&#8216;mycp22&#8242;); omycp22.style.color=&#8217;black&#8217;; omycp22.style.backgroundColor=tohex3(185,127,206); &lt;\/script&gt;<\/p>\n<p><script type='text\/javascript'> var omycp22=document.getElementById('mycp22'); omycp22.style.color='black';  omycp22.style.backgroundColor=tohex3(185,127,206); <\/script><\/li>\n<li>\n<p class=\"mypclass22\">Direct usage via Color RGB method for HTML element with class mypclass22 via CSS &lt;style&gt; .mypclass22 {  background-color:rgb(185,127,206); color:&#8217;black&#8217;; }&lt;\/style&gt;<\/p>\n<\/li>\n<li>\n<p id=\"mypid2\">Direct usage via Color RGB method for HTML element with id mypid2 via CSS &lt;style&gt; #mypid2 {  background-color:rgb(185,127,206); color:&#8217;black&#8217;; }&lt;\/style&gt;<\/p>\n<\/li>\n<\/ul>\n<p>Link to Mac OS X Digital Colour Meter information &#8230; <a target=_blank title='Mac OS X Automator information' href='http:\/\/en.wikipedia.org\/wiki\/DigitalColor_Meter'>from Wikipedia from which quote above comes<\/a>.<br \/>\nLink to Mac OS X Digital Colour Meter information &#8230; <a target=_blank title='Mac OS X Automator tutorials' href='http:\/\/www.apple.com\/osx\/apps\/all.html#colormeter'> from Apple<\/a> (the company of Mac OS X and so the company of Digital Colour Meter).\n<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d2674' onclick='var dv=document.getElementById(\"d2674\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=60\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d2674' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here is a tutorial that introduces you to Digital Colour Meter application in Mac OS X, which is a tool useful for web development for determining the RGB for a colour of your choosing. DigitalColor Meter is a utility for &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/digital-colour-meter-on-mac-laptop-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,29,37],"tags":[224,681,723,1065,1319],"class_list":["post-2674","post","type-post","status-publish","format-standard","hentry","category-elearning","category-operating-system","category-tutorials","tag-colour","tag-laptop","tag-mac","tag-rgb","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/2674"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=2674"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/2674\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=2674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=2674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=2674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}