Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Security check: INTRUDER ALERT!


devel / comp.lang.postscript / Re: I'm a blackstar

SubjectAuthor
* I'm a blackstarluser droog
`* Re: I'm a blackstarluser droog
 `- Re: I'm a blackstarjdaw1

1
I'm a blackstar

<210de3e9-272a-45a6-b8e1-cf6ccb2bed16n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=107&group=comp.lang.postscript#107

  copy link   Newsgroups: comp.lang.postscript
X-Received: by 2002:a0c:fec6:: with SMTP id z6mr38356477qvs.40.1641103104676;
Sat, 01 Jan 2022 21:58:24 -0800 (PST)
X-Received: by 2002:a05:6808:1141:: with SMTP id u1mr31471788oiu.30.1641103104356;
Sat, 01 Jan 2022 21:58:24 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.postscript
Date: Sat, 1 Jan 2022 21:58:24 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=97.87.183.68; posting-account=G1KGwgkAAAAyw4z0LxHH0fja6wAbo7Cz
NNTP-Posting-Host: 97.87.183.68
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <210de3e9-272a-45a6-b8e1-cf6ccb2bed16n@googlegroups.com>
Subject: I'm a blackstar
From: luser.droog@gmail.com (luser droog)
Injection-Date: Sun, 02 Jan 2022 05:58:24 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 61
 by: luser droog - Sun, 2 Jan 2022 05:58 UTC

<<
/ps { (stack:)= pstack }
/poly { % m
[
0 360 4 -1 roll div 360.0 {
1 0 3 2 roll matrix rotate transform
} for
] 0 1 index length 2 sub getinterval
} /star { % m n
exch poly exch
[ 3 1 roll
0 { % [ ... [] n i
3 copy exch pop 2 getinterval aload pop % [ ... [] n i []_i
5 2 roll % [ ... []_i [] n i
1 index 2 mul add 2 index length mod % [ ... [] n i+n%#
dup 0 eq { pop pop pop exit } if
} loop
]
} /fortuple { 1 dict begin {p n a}{exch def}forall
0 n /a load length 1 sub
[ /a load /exch cvx n /getinterval cvx /p load /exec cvx ] cvx
end for
} /draw {
dup 0 2 getinterval aload pop moveto
2 1 index length 2 sub getinterval
2 {
aload pop lineto
} fortuple
closepath
} >> begin

2 poly ==
3 poly ==
5 poly ==
5 2 star ==
7 3 star ==
3 1 star ==
300 400 translate 100 dup scale
5 2 star dup == draw stroke
showpage
quit

Output:
$ gs star.ps
GPL Ghostscript 9.52 (2020-03-19)
Copyright (C) 2020 Artifex Software, Inc. All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
[1.0 0.0 -1.0 0.0]
[1.0 0.0 -0.5 0.866025388 -0.5 -0.866025388]
[1.0 0.0 0.309017 0.95105654 -0.809017 0.587785244 -0.809017 -0.587785244 0.309017 -0.95105654]
[1.0 0.0 -0.809017 0.587785244 0.309017 -0.95105654 0.309017 0.95105654 -0.809017 -0.587785244]
[1.0 0.0 -0.90096879 0.433883876 0.623489559 -0.781831682 -0.222520873 0.974927902 -0.222521 -0.974927902 0.623489797 0.781831443 -0.900968909 -0.433883637]
[1.0 0.0 -0.5 0.866025388 -0.5 -0.866025388]
[1.0 0.0 -0.809017 0.587785244 0.309017 -0.95105654 0.309017 0.95105654 -0.809017 -0.587785244]
>>showpage, press <return> to continue<<

Re: I'm a blackstar

<c2367deb-90ba-405e-ba82-a72d6fd6d931n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=109&group=comp.lang.postscript#109

  copy link   Newsgroups: comp.lang.postscript
X-Received: by 2002:a05:622a:100c:: with SMTP id d12mr515586qte.374.1641336957251;
Tue, 04 Jan 2022 14:55:57 -0800 (PST)
X-Received: by 2002:a4a:41cb:: with SMTP id x194mr32587068ooa.51.1641336956901;
Tue, 04 Jan 2022 14:55:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.postscript
Date: Tue, 4 Jan 2022 14:55:56 -0800 (PST)
In-Reply-To: <210de3e9-272a-45a6-b8e1-cf6ccb2bed16n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=97.87.183.68; posting-account=G1KGwgkAAAAyw4z0LxHH0fja6wAbo7Cz
NNTP-Posting-Host: 97.87.183.68
References: <210de3e9-272a-45a6-b8e1-cf6ccb2bed16n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c2367deb-90ba-405e-ba82-a72d6fd6d931n@googlegroups.com>
Subject: Re: I'm a blackstar
From: luser.droog@gmail.com (luser droog)
Injection-Date: Tue, 04 Jan 2022 22:55:57 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 115
 by: luser droog - Tue, 4 Jan 2022 22:55 UTC

A little sup-ed up with assistance from a pdf by Kees var der Laan.

%!
<<
/ps { (stack:)= pstack }
/poly { % m
[
0 360 4 -1 roll div 360.0 {
1 0 3 2 roll matrix rotate transform 2 array astore
} for
] 0 1 index length 1 sub getinterval
} /cycle { % m n
[ 3 1 roll
0 { % [ ... m n i
dup 4 1 roll % [ ... i m n i
1 index add 2 index mod % [ ... i m n i+n
dup 0 eq { pop pop pop exit } if
} loop
]
} /first { 0 get }
/rest { 1 1 index length 1 sub getinterval }
/map { 1 index xcheck 3 1 roll [ 3 1 roll forall ] exch {cvx} if }
/curry { dup xcheck 3 1 roll
dup length 1 add array dup 0 5 -1 roll put dup 1 4 -1 roll putinterval
exch {cvx} if }
/fx,mapgxs { % a f g
3 1 roll exch dup first % g f a a0
3 -1 roll [ 3 1 roll exec ] % g a [a0 f]
3 1 roll rest exch map % [a0 f] [a1..N g]
} /select { % array indices
exch { % i a
exch get
} curry
map
} /unroll-star { % m n
1 index poly 3 1 roll % poly m n
0 exch dup 1 exch % poly m 0 n 1 n
1 exch sub 4 index add 4 index mod % poly m 0 n 1 1-n%m
4 array astore exch 3 1 roll select % m [a c b d]
intersect % m x y
[0 0] distance
ps
1 exch star2
} /star2 { 1 dict begin {r2 r1 m}{exch def}forall
/alfa 360 m div def
/alfa2 alfa 2 div def
[
0 alfa 360.0 {
dup r1 0 3 2 roll matrix rotate transform 2 array astore exch
r2 0 3 2 roll alfa2 add matrix rotate transform 2 array astore
} for
] 0 1 index length 1 sub getinterval
end }
% intersect adapted from https://www.ntg.nl/maps/18/23.pdf
/intersect { aload pop
1 dict begin {d c b a}{exch def}forall
1 1
1 1 [a _x b _x a _y b _y 0 0] itransform % A B
1 1 [c _x d _x c _y d _y 0 0] itransform % A B C D
0 0 6 array astore
itransform 2 array astore
end }
/_x { 0 get }
/_y { 1 get }
/distance { % [x1 y1] [x2 y2]
exch aload pop 3 2 roll aload pop
exch 4 1 roll exch sub dup mul % x2 x1 (y2-y1)^2
3 1 roll sub dup mul add sqrt
} /star { % m n
1 index poly 3 1 roll cycle select
} /draw {
{aload pop moveto} {aload pop lineto} fx,mapgxs pop pop
closepath
} >> begin

2 poly ==
3 poly ==
5 poly ==
5 2 star ==
7 3 star ==
3 1 star ==
300 400 translate
currentlinewidth
3 72 mul dup dup scale
div setlinewidth
5 2 star draw fill
1.125 dup scale
5 2 unroll-star draw stroke
showpage
quit

Output:
$ gs star.ps
GPL Ghostscript 9.52 (2020-03-19)
Copyright (C) 2020 Artifex Software, Inc. All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
[[1.0 0.0] [-1.0 0.0]]
[[1.0 0.0] [-0.5 0.866025388] [-0.5 -0.866025388]]
[[1.0 0.0] [0.309017 0.95105654] [-0.809017 0.587785244] [-0.809017 -0.587785244] [0.309017 -0.95105654]]
[[1.0 0.0] [-0.809017 0.587785244] [0.309017 -0.95105654] [0.309017 0.95105654] [-0.809017 -0.587785244]]
[[1.0 0.0] [-0.90096879 0.433883876] [0.623489559 -0.781831682] [-0.222520873 0.974927902] [-0.222521 -0.974927902] [0.623489797 0.781831443] [-0.900968909 -0.433883637]]
[[1.0 0.0] [-0.5 0.866025388] [-0.5 -0.866025388]]
stack:
0.386123687
5 >>showpage, press <return> to continue<<

Re: I'm a blackstar

<db0d18d1-28d3-4101-9e07-da6b2917c5e1n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=186&group=comp.lang.postscript#186

  copy link   Newsgroups: comp.lang.postscript
X-Received: by 2002:a05:622a:11ca:b0:342:e8bb:ecca with SMTP id n10-20020a05622a11ca00b00342e8bbeccamr13299251qtk.11.1659997040213;
Mon, 08 Aug 2022 15:17:20 -0700 (PDT)
X-Received: by 2002:aca:e0d7:0:b0:33a:afba:2cd7 with SMTP id
x206-20020acae0d7000000b0033aafba2cd7mr8395268oig.81.1659997039995; Mon, 08
Aug 2022 15:17:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.postscript
Date: Mon, 8 Aug 2022 15:17:19 -0700 (PDT)
In-Reply-To: <c2367deb-90ba-405e-ba82-a72d6fd6d931n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=185.176.160.84; posting-account=Cp97SgoAAAC0t1Gya5PaPqyoafMoOtAn
NNTP-Posting-Host: 185.176.160.84
References: <210de3e9-272a-45a6-b8e1-cf6ccb2bed16n@googlegroups.com> <c2367deb-90ba-405e-ba82-a72d6fd6d931n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <db0d18d1-28d3-4101-9e07-da6b2917c5e1n@googlegroups.com>
Subject: Re: I'm a blackstar
From: jdawiseman@gmail.com (jdaw1)
Injection-Date: Mon, 08 Aug 2022 22:17:20 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2419
 by: jdaw1 - Mon, 8 Aug 2022 22:17 UTC

Ages ago I wrote a general purpose star routine, capable of generating the path of an n/m star (n points, each connecting to the point ±m away). In
https://github.com/jdaw1/placemat/blob/main/PostScript/placemat.ps
search for “+Star” in the routine Star, which currently spans lines 4306–4388. Star assumes the existence of DeBugLevel, but those lines are easily removed.

Parameters:
• /Left|/Center|/Right = x position relative to the current point
• /Top|/Middle|/Bottom = y position relative to the current point
• Size, in points
• /Radius|/Diameter|/Height|/Width, being the meaning of Size
• AngleOffset, being non-zero to rotate the star
• NumPoints = n
• NumStep = m
• DrawLinesInside, which if false is good for stroking.
• AntiClockwise

Example output can be seen in:
http://www.jdawiseman.com/2018/20180605_Eights.pdf
http://www.jdawiseman.com/2019/20190305_F70_Youngsters.pdf
http://www.jdawiseman.com/2019/20190326_DRT_elixir.pdf
http://www.jdawiseman.com/2020/20200109_blind.pdf

Share and enjoy.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor