Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%!PS | |
% Nicolas Seriot | |
% 2025-03-24 | |
<< /PageSize [300 300] >> setpagedevice | |
/datetime (%Calendar%) currentdevparams def | |
/H datetime /Hour get def | |
/M datetime /Minute get def |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%!PS | |
<< /PageSize [320 240] >> setpagedevice | |
/Courier findfont 12 scalefont setfont | |
/sleep { 100000 mul {} repeat } def | |
/x 100 def | |
/y 50 def | |
/r 15 def |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Sleep {5000000 {} repeat } def | |
/P 50 def | |
/X 250 def | |
/Y 200 def | |
% rotation angles | |
/a 0 def | |
/b 0 def |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/D{def}def/L 200 D/M{mul}D/P 50 D/N{P neg}D/G{get}D/a 0 D/b 0 D/c 0 D/o{0 G}D/O{ | |
1 G}D L L translate{/v[[N N N][P N N][P P N][N P N][N N P][P N P][P P P][N P P]] | |
D/w 8 array D/f a cos D/d b cos D/e c cos D/s a sin D/t b sin D/u c sin D 0 1 7{ | |
/i exch D/p v i G D/y p O f M p 2 G s M sub D/z p O s M p 2 G f M add D/x p o d | |
M z t M add D w i[x e M y u M sub x u M y e M add]put}for[[0 1][1 2][2 3][3 0][4 | |
5][5 6][6 7][7 4][0 4][1 5][2 6][3 7]]{/E exch D w E o G o w E o G O moveto w E | |
O G o w E O G O lineto}forall 0 setgray stroke flushpage 9999999{}repeat 1 | |
setgray -100 dup L dup rectfill/a a 1 add D/b b 3 sub D/c c 4 sub D}loop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* see https://seriot.ch/projects/programming_in_postscript.html#2 */ | |
/* Comments */ | |
/* | |
comment.block | |
comment.block.documentation.tag | |
comment.line | |
comment.line.double-dash | |
comment.line.double-slash | |
comment.line.number-sign |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%!PS | |
%%Title: cpc2.ps | |
%%Creator: Nicolas Seriot | |
% January 2025 | |
% Amstrad CPC Color Palette | |
% https://www.cpcwiki.eu/index.php/CPC_Palette | |
% https://seriot.ch/projects/drawing_with_computers.html | |
% https://bsky.app/profile/nst021.bsky.social/post/3leytevn6ck25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%!PS | |
%%Title: cpc.ps | |
%%Creator: Nicolas Seriot | |
% January 2025 | |
% Amstrad CPC Color Palette | |
% https://www.cpcwiki.eu/index.php/CPC_Palette | |
% https://seriot.ch/projects/drawing_with_computers.html | |
% https://bsky.app/profile/nst021.bsky.social/post/3leytevn6ck25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%!PS | |
%%BoundingBox: 0 0 320 240 | |
% gv -infoSilent anim.ps | |
/Courier findfont 12 scalefont setfont | |
/sleep { 100000 mul {} repeat } def | |
/x 100 def |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
pygame.init() | |
# 1 = en haut à droite | |
# 2 = en bas à droite | |
# 3 = en bas à gauche | |
# 4 = en haut à gauche | |
l_écran = 400 |
NewerOlder