-
Best way to store vector images in Sinclair BASIC?Let's forget for a moment that Sinclair BASIC is slow. If I have a picture made entirely of vector images, what would be the best way to store that d…
... guess it's better to draw shapes as polygons (or ... draw them in one go. So you don't need to plot ...
(px,py = plot y,x) (dx,dy=draw y,x) (*=a ... bytes two by two and draw until you stumble upon ... stream, then you can plot again to draw a new shape. ... -
DATA BIN - How to read the contentOkay I hit a snag with my Image to ZX Spec program that the plot/draw command eats too much memory. So I want to use DATA BIN to insert converted jp…
... what you've done with PLOT and DRAW...).[/QUOTE]
I ... -
Draw (x1,y1) to (x2, y2)?I was never very good at math. :( Given the above variables, what should I do to draw a line between the two pixels? How do I calculate the values fo…
... displacement, Y displacement":
DRAW xdisp, ydisp
Which ... are at 100,100 and DRAW -50, 50, thiss will create ... :
[code]PLOT x1, y1
DRAW x2 - x1, y2 - y1 ... the magic:
30 PLOT x1, y1: DRAW OVER 1; x2 -x1 ... -
Sinclair BASIC compiler for PC?Boriel's compiler is very powerful but it isn't meant for Sinclair BASIC, and the old compilers in the archive have their limitations: BASIC listing …
... /> On the other hand, original PLOT routine is used, but jumping ... same applies to DRAW & CIRCLE.
DRAW & CIRCLE uses ... -
Rainbow Generator for 48K Spectrum using PUSHThis is what I came up with from [B]gasman[/B]'s suggestions. It's stable in ZXSpin and ZX32 simulating a 48K Speccy. Anyone like to try it on the …
... data area).
; PRINT, PLOT, CIRCLE and DRAW now function on the ... -
Open82 v2009-01-13 releasedI'm pleased to announce a new release of Open82, the GPL-licenced replacement Spectrum ROM formerly known as OpenZXRom. [url]http://sourceforge.net/…
... . [/QUOTE]
submitted block udg, plot is already done by anyone ... is shifted through whole byte ?), draw needs refactoring and testing. -
can someone help with a rom routinei have been trying to draw a simple line with a the rom routine , but i just cant get it to work , so if anyone can give me an example in z80 that wo…
... have been trying to draw a simple line with ... position, so do a PLOT 100,100 or similar before ...
For example, to DRAW -50,20 you would use ... />
[CODE]
DRAW EXX
PUSH HL ;you ...
CALL 024BAH ;draw the line from current coordinates ... -
PitPatI am coding the digital version of PIT-PAT [IMG]http://www.berg-en-dal.be/images/thumb/pitpat_spelen_2_kleur.jpg[/IMG] In fact it is golf on a tabl…
... coding your alternate x/y draw coding (very compact/clever!)[/QUOTE ... .
2 bytes: PLOT position of start of draw.
now only ... DRAW-parameters follow. When ... a DRAW is ready and must be replaced at another PLOT then ... -
PitPatI am coding the digital version of PIT-PAT [IMG]http://www.berg-en-dal.be/images/thumb/pitpat_spelen_2_kleur.jpg[/IMG] In fact it is golf on a tabl…
...
; level draw
defb 30,30 ; the PLOT
defb 100 ... ,256-19 ; last 1 less DRAW in OVER-mode
defb ... -
Announcing the 2009 CSSCGCas Digital Prawn has already said, the 2009 compo page went live today, so there's a small overlap between the competitions. obviously you can't subm…
... drawn. Now by doing the draw I must calculate when I ... 60 degrees then you must draw a line under that angle ... and will calculate after each plot by using Pythagoras if position ... -
Announcing the 2009 CSSCGCas Digital Prawn has already said, the 2009 compo page went live today, so there's a small overlap between the competitions. obviously you can't subm…
... drawn. Now by doing the draw I must calculate when I ... 60 degrees then you must draw a line under that angle ... and will calculate after each plot by using Pythagoras if position ... -
Question about operations and target numbers[size=1]Title should say *operators. It's been a long day.[/size] :p One of the homework problems my kids are working on consists on using a set of …
... ..."
14 DRAW 255,0: DRAW 0,7: DRAW -255,0: DRAW 0,-7 ... $+d$+e$
116 PLOT x2,2: DRAW 0,3: LET x2 ... -
Physics program annoucedHi everyone I have a great new idea!!!! I am going to release a series of mini physic programs with each one containg lots of physics formula. Like …
... REM Plot
310 PLOT x1,y1: DRAW s1x,s1y: PLOT x2,y2: DRAW s2x ... -
Alice in WonderlandThe new Tim Burton film, Alice in Wonderland, is awful. My reasons for saying this, and warning, spoilers are in this hidden text: [spoiler]Aside f…
... plot (what there is of it) isn't interesting enough to draw ... -
Alice in WonderlandThe new Tim Burton film, Alice in Wonderland, is awful. My reasons for saying this, and warning, spoilers are in this hidden text: [spoiler]Aside f…
... plot (what there is of it) isn't interesting enough to draw ... -
Can a Voxel 3D engine be made in ZX Spectrum?I am not a programmer! So I could not investigate it... But I am not shy enough to shut up, I have to say the idea. I thought about this some weeks a…
... a pretty pattern when you plot it out. Like "y=2x ... a super-fast routine to draw them from different viewing angles ... -
Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…
[code]
1 POKE 23618,1:
INK RND*6:
POKE 23620,5-(RND -
Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…
[QUOTE=Digital Prawn;440795][code]
1 POKE 23618,1:
INK RND*6:
POKE 23620,5-(RND -
Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…
[QUOTE=bigjon;440892]Ooh, we haven't had any optimisation in BASIC for ages! I'll kick off with the obvious:
[/QUOTE]
Nice one bigjon! I once said I had retired from one-liners, which I realise now was very foolish. In fact I was just busy at ... -
Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…
... -2:
PLOT 255*RND,176*RND:
DRAW 99*RND,99 ... -
Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…
... 40 is Dr. Logan's DRAW feature which is always good ... -
Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…
... v-2: PLOT
255*RND,175*RND: DRAW 99*RND, 99 ... -
Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…
... v-2: PLOT
255*RND,175*RND: DRAW 99*RND, 99 ... -
LOST Final series any spoilers ?Has anyone heard any interesting goss on the outcome ?
... whole afterlife sequence in the plot - it was just a televisual ... , and they'd managed to draw the two threads together to ... -
How paint in the down two lines ?The down two lines on the spectrum screen cant be used. But i remeber from the 80's that exist some code that allow us to paint on these two lines wi…
[CODE]
10 OPEN #2,"K"
20 PRINT #2; AT 0,0;"Hello"
30 PRINT #2;"World"
40 PAUSE 0: REM Wait for keypress
[/CODE]
EDIT: Just noticed you were talking about PLOT and DRAW, not PRINT. I dunno how to do that, sorry! -
How paint in the down two lines ?The down two lines on the spectrum screen cant be used. But i remeber from the 80's that exist some code that allow us to paint on these two lines wi…
David Webb's book [url=ftp://ftp.worldofspectrum.org/pub/sinclair/books/AdvancedSpectrumMachineLanguage.pdf]Advanced Spectrum Machine Language[/url], chapter 3, has routines for full-screen PLOT and DRAW. -
How paint in the down two lines ?The down two lines on the spectrum screen cant be used. But i remeber from the 80's that exist some code that allow us to paint on these two lines wi…
... />
The default for plot and draw inside this is full screen ...
