Page 1 of 4

MINIGRAFIK lineart

Posted: Sat Oct 07, 2017 3:07 am
by armypavarmy
Hello to all.........
The included .zip file contains
four graphics programs for Minigrafik
The original listings were taken from Plus / 4
and ZX Spectrum and adapted to me by Minigrafik.
Load and run Minigrafik before
then load and run the program you chose.
at the end of the chart
Press a key to return to the basic
Armando ...................
minigr-p.zip
(1.38 KiB) Downloaded 213 times

Re: MG lineart - Halloween

Posted: Sun Oct 22, 2017 6:12 am
by armypavarmy
Hello to all
halloween lantern
for maxi maxigrafik and mini minigrafik
For minigrafik sound and lightning effect.
Drawn and adapted from Super Expander program
Good halloween .............. Armando
halloween.prg.zip
(1.59 KiB) Downloaded 204 times

Re: MG lineart - Castles

Posted: Thu Nov 09, 2017 11:54 am
by armypavarmy
Hi.........

collection of five castles
drawn by me with minigrafik
to go to the next one, press a key
castles.prg.zip
(6.04 KiB) Downloaded 204 times
--------------Armando

Re: Re: MG lineart - Castles

Posted: Thu Nov 09, 2017 6:32 pm
by ral-clan
How do I view these?

I loaded them into VIC both expanded RAM and non expanded and after RUN nothing happened.

Re: Re: MG lineart - Castles

Posted: Fri Nov 10, 2017 1:20 am
by armypavarmy
First load and run Minigrafik program
secon load and run Castle program
.....................Armando

Re: Re: MG lineart - Castles

Posted: Fri Nov 10, 2017 12:55 pm
by Mike
For exactly those scenarios: either a member of the audience possibly doesn't know about MINIGRAFIK at all or does not know what it is supposed to do and how to use it, or a client program is working and the programmer wants to automatise the 'start-up procedure' of MG for a release, I have provided MAKEBOOT with the MG batch suite.

As an example, I have prepended 'castles.prg' with exactly that boot loader, and put the three files: BOOT, MINIGRAFIK and CASTLES in a *.zip-ped *.d64. See the attachment:

castles.zip

The graphics demo needs at least a +16K RAM expansion, and as MINIGRAFIK works with both NTSC and PAL, so does this demo.

Any questions?

Re: MG lineart - Lighthouse

Posted: Tue Nov 14, 2017 6:04 am
by armypavarmy
Hello to all
My last design with Minigrafik
Attached d64 files with autoboot.

Question.
you can sketch a diagonal line
for points using only the plot command?
Not with plot To ........ for line draw.
Greeting.....
Thank Mike for help.
.............Armando
lighthouse.d64.zip
(9.64 KiB) Downloaded 205 times

Re: MG lineart - Lighthouse

Posted: Tue Nov 14, 2017 8:31 am
by Mike
Hi, Armando.

I merged all your threads with MINIGRAFIK lineart into one thread. The chances are higher to keep up a coherent discussion if you don't open a new thread for each new example. There's an all-compassing topic title, which fits: "MINIGRAFIK lineart".
armypavarmy wrote:Attached d64 files with autoboot.
O.K. - please try for yourself to create a new BOOT file with MAKEBOOT to suit the application name. Just reusing the boot loader from the castles demo (where *I* did the work to show you how it's done properly) obviously didn't have the intended learning effect if you go and "just" rename the client application instead! Saying "It was the easiest thing to do" is no excuse here. MAKEBOOT is able to address any conceivable name for the client application.
[...][can you] sketch a diagonal line for points using only the plot command?
Of course you can. Just use the algebraic line equation y=m*x+b. Or Bresenham. Of course it will be slower than the built-in line command (which, incidentally, uses the Bresenham algorithm). What would you want to use it for?

P.S. Given the Lighthouse demo, I have an idea how you might have wanted to use it - but I want that use case confirmed by you. And in that case, your 'problem' could also be solved by an equation system with two unknown variables.

Re: MINIGRAFIK lineart

Posted: Wed Nov 15, 2017 5:55 am
by armypavarmy
Mike wrote:

[...][can you] sketch a diagonal line for points using only the plot command?

Of course you can. Just use the algebraic line equation y=m*x+b. Or Bresenham. Of course it will be slower than the built-in line command (which, incidentally, uses the Bresenham algorithm). What would you want to use it for?


Armando wrote:

I want to use for very long diagonal
like those used for the lighthouse.
a diagonal example with formula values
I would be useful to understand the value of
variables m and b..
Diagonal data: X 90 to100 : Y 85 to 190
XX 140 to 150 : YY 85 to 190
Greeting…..Armando

Re: MINIGRAFIK lineart

Posted: Wed Nov 15, 2017 9:27 am
by Mike
Mike wrote:What would you want to use it for?
armypavarmy wrote:I want to use for very long diagonal like those used for the lighthouse. [...]

Diagonal data: X 90 to100 : Y 85 to 190
XX 140 to 150 : YY 85 to 190
The built-in line drawing command obviously can put those on screen perfectly well with @1,90,85TO100,190 and @1,140,85TO150,190. So that's not the real problem you're up to.
a diagonal example with formula values
I would be useful to understand the value of
variables m and b..
See here: Retta nel piano cartesiano. Especially the section "Retta passante per due punti".

For lines with a slope |m|>1 you'd actually invert the formula and step over y values with other values of "m" and "b", i.e. x = m' * y + b' ... however, it's of no use to revert to a pixel-wise plot to draw lines - when there's a built-in, faster line routine available - unless you have another compelling reason, which you didn't disclose thus far.

Re: MINIGRAFIK lineart

Posted: Sat Nov 25, 2017 10:26 am
by Mike
... perhaps you had something like this in mind (download)?

Code: Select all

10 @ON:@CLR:@1,130,50TO70,150:FORT=1TO72:READX,Y:@1,15,25TOX,Y:NEXT
11 GETA$:ON-(A$="")GOTO11:@RETURN:END 
12 :
13 DATA 159,25,159,4,100,0,71,0,56,0,47,0,41,0,36,0,33,0,30,0,28,0,26,0,24,0,22,0,20,0
14 DATA 19,0,18,0,16,0,15,0,14,0,12,0,11,0,10,0,8,0,6,0,4,0,2,0,0,0,0,4,0,7,0,11,0,13,0
15 DATA 16,0,18,0,21,0,23,0,25,0,27,0,29,0,32,0,34,0,37,0,39,0,43,0,46,0,50,0,55,0,61,0
16 DATA 68,0,79,0,94,0,118,0,167,6,191,15,191,24,191,33,191,42,191,51,191,61,191,73,191
17 DATA 85,191,74,143,80,133,86,124,91,114,97,104,104,94,110,83,118,71,126,57,159,46
18 :
19 REM ** MG RAYS WRITTEN 2017-11-25 BY MICHAEL KIRCHER

Re: MINIGRAFIK lineart

Posted: Mon Nov 27, 2017 6:17 am
by armypavarmy
Hello
Two fractal designs of name
Ginger and Lorenz.
Custom made by me for ZX Spextrum
the Vic20 and Minigrafik.
Zip file with autoboot.
Armando ...........
fractals.d64.zip
(3.4 KiB) Downloaded 191 times

Re: MINIGRAFIK lineart

Posted: Sun Dec 10, 2017 6:23 am
by armypavarmy
Hello
two drawings of fishing boats
made by me with Minigrafik
Zip file .d64 autoboot
fishing boats.D64.zip
(4.8 KiB) Downloaded 194 times

Re: MINIGRAFIK lineart

Posted: Fri Dec 15, 2017 8:36 am
by armypavarmy
Hello
Attached .d64 file
GR13 fractal program
done with Minigrafik
Load "boot", 8: run
The first program at the end
charge and execute the second.
Armando
fractals-2.d64.zip
(5.92 KiB) Downloaded 180 times

Re: MINIGRAFIK lineart

Posted: Fri Dec 15, 2017 12:39 pm
by armypavarmy
Corrected file
...... thanks Mike .....
attached new .zip file
working.
Armando
fractals-v2C--.d64.zip
(4.72 KiB) Downloaded 192 times