you can now set the image size in genplot2

This commit is contained in:
tTh
2022-11-26 11:39:22 +01:00
parent 5f80203592
commit 35e5947fdb
9 changed files with 167 additions and 25 deletions

5
Tests/.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
a.scratch
*.tga

15
Tests/essai_genplot2.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
echo "------------------------------------------"
echo "GO" | ./mk_dessin.awk > a.scratch
wc a.scratch
echo "------------------------------------------"
../Tools/genplot2 -s 640x480
errcode=$?
echo "code retour genplot2 = " $errcode
echo "------------------------------------------"
echo "------------------------------------------"

27
Tests/mk_dessin.awk Executable file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/awk -f
# ce joli programme fabrique un fichier de donnees qui sera
# utile au bon deroulement de 'essai_genplot2.sh'
BEGIN { nbretraits = 20000 }
END {
for (trait=0; trait<nbretraits; trait++)
{
if (0.498 > rand())
{
posx += rand()
posy += rand()
print posx, posy, 1
}
else
{
posx -= rand()
posy -= rand()
print posx, posy, 2
}
}
}
# job done