Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.datemas.de!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Don Lancaster Newsgroups: comp.lang.postscript Subject: Re: help hacking halftones Date: Fri, 28 Dec 2012 08:22:28 -0700 Lines: 38 Message-ID: References: <3c7e371c-8439-4503-9ed6-499e1f3bd76c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net IRzyJnSqq6BikX9pGXPoSgagrgJrVVHWkcnMQ1xhLsH44tHzgJCf65yZa2WRA/5ETe Cancel-Lock: sha1:OBFDnXyiGTZTiUdW2Utsbi/l0zs= User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <3c7e371c-8439-4503-9ed6-499e1f3bd76c@googlegroups.com> Xref: csiph.com comp.lang.postscript:1203 On 12/25/2012 11:50 PM, luser- -droog wrote: > There have been two excellent postscript answers to http://codegolf.stackexchange.com/questions/9266/emulate-a-7-segment-display "Emulate a 7-segment display" > > And I wanted to try a different approach. I've pretty much given up on trying to golf this, but here's what I got. > > Instead of passing in as a defined name, wouldn't it be "shorter" to just place it on the stack with -c "1101101" ? > > So that led me to this mess: > > 1 (1101101) > 2 0 > 3 1 index > 4 {1 and 255 mul 3 copy put pop 1 add}forall > 5 pop > 6 dup > 7 dup > 8 3 5 8[.02 0 0 .05 0 0]{}image > > It doesn't place pixels correctly, but does give you big blobs on the screen controlled by ascii-binary. > > But then, I thought, the 7-segment display itself is a little grid controlled by a function. Could we abuse the spot function to active pixels (I mean, "cells", of course, super-zoomed) individually? > > But I've been beating my head over how the halftones are supposed to work. I have no idea as yet how to begin abusing them. :( > The secret halftone maps appear at < http://www.tinaja.com/glib/pssecrets.pdf > -- Many thanks, Don Lancaster voice phone: (928)428-4073 Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552 rss: http://www.tinaja.com/whtnu.xml email: don@tinaja.com Please visit my GURU's LAIR web site at http://www.tinaja.com