World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.120s
<1234567…34>
  • 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…

    ... variables, what should I do to draw a line between the two ... I calculate the values for DRAW?

    I thought ... simple matter of subtracting x1 and y1 from x2 and y2 but sometimes it ... error.

    PLOT x1,y1
    DRAW ????.????

    I've ...
    zxbruno zxbruno May 2009 Sinclair Basic
  • SpecBAS 0.755 Now available!At last, here's the bugfixes you've all been waiting for! The last round of fixes which allowed proper error propagation in the file i/o routines re…

    ... br />
    Added:

    DRAW x1,y1 TO x2,y2[,angle] - draws a line from ... file commands
    SAVE to a non-existant directory ... COPY didn't send to the current package properly< ... /> ERASEing package files tended to erase the entire package... ...
    Dunny Dunny October 2012 Sinclair Miscellaneous
  • SpecBAS 0.747 Now available!Hiya folks - it's update time again! SpecBAS has had a load of new fixes, as well as some new additions! Firstly, as you all wanted it, SpecBAS can…

    ... />
    GRAPHIC ORIGIN x1,y1 TO x2,y2 - as for windows, sets ... /> WINDOW ORIGIN x1,y1 TO x2,y2 - allows you to specify a coordinate ...
    CONST optimisations to commonly used string operations ... TO 1,1

    Now all graphics commands (PLOT, DRAW ...
    Dunny Dunny July 2012 Sinclair Miscellaneous
  • SpecBAS 0.749 Now available!Ey oop, you lot! A new SpecBAS has now been uploaded to the usual place - [url]http://www.specbas.co.uk/[/url] For your delight and delectation. …

    ...
    Added:

    ORIGIN x1,y1 TO x2,y2 can now be used as ... use in a PRINT/PLOT/DRAW etc statement as you would ... destination
    2: Add source to destination
    3: Subtract ... such as PLOT, DRAW etc. Clipping only applies to the current drawing ...
    Dunny Dunny July 2012 Sinclair Miscellaneous
  • SpecBAS: Request for comment - SpritesHi all - Having been slaving away at the new SpecBAS release, I've decided to finally bite the bullet and implement a sprite engine. I've got a nice…

    ... but clipped) they're attached to. Sprites are therefore "floating ... n PATH x,y TO x1,y1 TO x2,y2 ... TO xn,yn to define a path ... [quote]
    STOS had commands to make sprites move or animate ... rectangles that you can PLOT/DRAW/CIRCLE etc to.

    ...
    Dunny Dunny January 2011 Sinclair Miscellaneous
  • Akalabeth gamei found now that someone ported an ansi-basic game (coded in 1979?) to msx-basic - what about a zx-spectrum basic version of it? ;) https://plus.goo…

    ... )
    Programmer's Guide to the Apple-II (©1978 Computer ... , but they're easy enough to find.)

    Functions ... HPLOT absolute X pixel coordinate to DRAW relative X pixel coord
    to DRAW relative Y pixel coord
    Battle Bunny Battle Bunny August 2016 Sinclair Basic
  • SpecBAS 0.802 Released!Hi folks - It's that time again when I release the latest round of features and bugfixes to SpecBAS :) New for this version are ZONEs which act ver…

    ... USING$ function - identical to PRINT USING() but returns a ... ,h as well as x1,y1 TO x2,y2
    MATCH(regexp$,text ... increase!
    Slight optimisations to other primitive drawing commands - ... keybuffer inappropriately, causing INKEY$ to lose keys
    ...
    Dunny Dunny February 2014 Sinclair Basic
  • SpecBAS 0.830 Released!Hi guys - A new official release of SpecBAS has been released. The full changelog is below, but for now here's the download: [url]https://sites.goo…

    ... (UNDIM), filtering arrays to remove or isolate specific patterns ... parameters: string to search, text to replace, text to replace with ... coordinates (as opposed to just two) - x1,y1 TO x2,y2 TO x3,y3 which ... appended an extra "$" to the varname, rendering it ...
    Dunny Dunny February 2015 Sinclair Basic
  • Drawing LinesHas anyone got any experience of coding a Bresenham line drawing algorithm on the Speccy? I've had a go and I find the algorithm has quite a few s…

    ... x1,y1 to x2,y2
    ; On entry B = y1, C = x1, D = y2, E = x2 ... (DBLDELTAX),HL ; deltax = x2 - x1
    LD A,(DBLDELTAX+1 ... ),HL ; deltax = abs(x2 - x1)
    DBLGENDY LD A,(DBLEND ... (DBLDELTAY),HL ; deltay = y2 - y1
    LD A,(DBLDELTAY+1 ...
    dbolli dbolli March 2019 Development
  • dot producti need to find the dot product of two angles. i looked it up on wikipedia and realised i should have payed attention in math class. anyway, does an…

    ... trying to say is:

    For two vectors (x1,y1) and (x2,y2):
    Dot product = (x1*x2) + (y1*y2)

    For two vectors (x1,y1, ... z1,etc...) and (x2,y2,z1,etc...):
    Dot product = (x1*x2) + (y1*y2) + ...
    joefish joefish January 2010 Chit chat
  • dot producti need to find the dot product of two angles. i looked it up on wikipedia and realised i should have payed attention in math class. anyway, does an…

    ... trying to say is:

    For two vectors (x1,y1) and (x2,y2):
    Dot product = (x1*x2) + (y1*y2)

    For two vectors (x1,y1, ... z1,etc...) and (x2,y2,z1,etc...):
    Dot product = (x1*x2) + (y1*y2) + ...
    Scottie_uk Scottie_uk January 2010 Chit chat
  • Looking for 'Your Computer' gravity simulation type inHi, In one of the old Your Computer mags, in the type in progs section near the back, there was a Speccy program which simulated interaction between…

    ... x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
    120 IF x2=x1 THEN LET phi=PI /2:\
    GO TO ... 140
    130 LET phi=ATN ABS ((y2-y1)/(x2-x1))
    ... /> 310 PLOT x1,y1:\
    DRAW s1x,s1y:\
    PLOT x2,y2:\
    DRAW
    Dunny Dunny May 2006 Sinclair Basic
  • Looking for 'Your Computer' gravity simulation type inHi, In one of the old Your Computer mags, in the type in progs section near the back, there was a Speccy program which simulated interaction between…

    ... : GO TO 122
    121 LET phi12=ATN ABS ((y2-y1)/(x2-x1))
    122 ... IF x3=x1 THEN LET phi13=PI/2: GO TO ... PLOT x1,y1: DRAW s1x,s1y: PLOT x2,y2: DRAW s2x,s2y: PLOT x3,y3: DRAW s3x ...
    Matt_B Matt_B November 2006 Sinclair Basic
  • Looking for 'Your Computer' gravity simulation type inHi, In one of the old Your Computer mags, in the type in progs section near the back, there was a Speccy program which simulated interaction between…

    ... : GO TO 122
    121 LET phi12=ATN ABS ((y2-y1)/(x2-x1))
    122 ... IF x3=x1 THEN LET phi13=PI/2: GO TO ... PLOT x1,y1: DRAW s1x,s1y: PLOT x2,y2: DRAW s2x,s2y: PLOT x3,y3: DRAW s3x ...
    Matt_B Matt_B November 2006 Sinclair Basic
  • 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 …

    ... *m2/((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
    120 IF x2=x1 THEN LET phi=PI/2: GO TO ... x1,y1: DRAW s1x,s1y: PLOT x2,y2: DRAW s2x,s2y
    320 LET x1=x1+s1x: LET x2=x2 ... +s2x
    330 LET y1=
    Willy Willy March 2010 New game ideas
  • SpecBAS 0.800 Released!Hi folks, it's that time again for another release. I was going to add a few more features, but I have other projects on the go at the moment, and it…

    ... a=1 TO np: LET x1=p(a,1): LET y1=p(a ... ,2): FOR b=a TO ... np: LET x2=p ... (b,1): LET y2=p(b,2): PLOT x1,y1: DRAW TO x2,y2 ... : NEXT b: NEXT a
    70 WAIT SCREEN: GO TO 20 ...
    Dunny Dunny January 2014 Sinclair Basic
  • Thought this would be simple... Z80Hi Folks, Started to read "Beyond simple BASIC, Delving Deeper into your ZX Spectrum" by Dilwyn Jones. This is a great book and I came across the…

    The C equivalent, using Z88DK, would be this:

    [code]/* zcc +zx -vn -lndos plots.c -o plots -create-app */

    #include

    int main()
    {
    register unsigned char i;

    for(i=1; i
    thricenightly thricenightly August 2017 Development
  • Some issues with my UDG programFor the sake of remembering how to do some things in Basic, I started coding a small program that could be used to create UDGs: [url]http://db.tt/tt…

    ... program that could be used to create UDGs:

    x1 is equal to x and y1 to y
    ... square, otherwise clear the coordinates x1,y1 (to delete the trail).
    ... x1 preview next to the grid) but the routine would sometimes fail to draw ...
    zxbruno zxbruno June 2011 Sinclair Basic
  • Fastest way to decide which pixel to paint in order to draw a straight line(after I saw "Bresenhams circle algorithm" in development forum, I decided to ask this in here) in fact, I want to accelerate a car towards a direct…

    ... in development forum, I decided to ask this in here)
    x1,y1, and target position is x2,y2.

    ... I'm using some trigonometric calculation to find ... the course, and decide to move the car to ...
    Arda Arda September 2008 Sinclair Basic
  • 3D Games in SpecBAS!Not really :) Actually, yes - here's a type-in for you: MontyMole's "Crap Castle Master" [code] ZXASCII AUTO -1 PROG CrapCastleMaster 1 REM Crap Ca…

    ... Master by A Lycett adapted to SpecBAS
    5 WINDOW ORIGIN ... 0,0,0 TO 256,192: SCALE SCRw/256 ...
    Dunny Dunny May 2014 Sinclair Basic
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ... DRAW-LINE
    ; ******************************************************************************
    ;
    ; Draw ... to 191.
    ; DE = (x1,y1) - x1 range is 0 to 255, y1 range is 0 to ... salta se x2>=x1
    ... salta se y2>=y1
    ...
    rtunes rtunes October 2001 Sinclair Miscellaneous
  • line routineWondered if anyone can help me out. I have been programming a 3d graphics library for the spectrum, in Machine code. The line routine that I have i…

    ... DRAW-LINE
    ; ******************************************************************************
    ;
    ; Draw ... to 191.
    ; DE = (x1,y1) - x1 range is 0 to 255, y1 range is 0 to ... salta se x2>=x1
    ... salta se y2>=y1
    ...
    rtunes rtunes October 2001 Sinclair Miscellaneous
  • Vector drawing routines.Anybody could point me to some sort of vector drawing package of routines, callable from BASIC? With "vector drawing" I mean to draw 2D pictures with…

    ... I decide to use splib2 to create my image parser to draw lines, circles ... graphics routines will be called to draw lines, etc, instead of ... 1: // line draw
    // draw(int x1, int y1, int x2, int y2);
    draw(params[0 ...
    Alcoholics Anonymous Alcoholics Anonymous October 2007 Development
  • 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…

    ... /> Standard BASIC's "LINE (x1, y1) - (x2, y2)" translates to this couple of lines in ... :

    [code]PLOT x1, y1
    DRAW x2 - x1, y2 - y1[/code]

    So you ... 't working would help us to help you :)

    EDIT ...
    na_th_an na_th_an May 2009 Sinclair Basic
  • Recursive 4-way floodfillHi guys) Shortly, I wanna find out whether there's a way to some object. Perhaps some of you have already encountered such an issue which is relativ…

    ... />
    The key is how to draw shapes' boundaries: for non horizontal ... /> 40 LET x1=128+30*COS i:
    LET y1=88+30 ... LET x1=128-82:
    LET y1=88-82:
    LET x2=128 ... +82:
    LET y2=88 ...
    mcleod_ideafix mcleod_ideafix January 2011 Sinclair Basic
  • Compiling Basic to MCHello, I have a lot of long Basic programs. These are mostly strategy programs, good but slow. I was thinking about how to speed them up without com…

    ... I will forward this information to the author of the ... br /> 50 DRAW INK c; x2 - x1, y2 - y1
    60 LET x1 = x2: LET y1 = y2: REM Next ... sentences, which might lead to serious ambiguity if no END ... compatible BASIC, better stick to the ROM BASIC and use ...
    boriel boriel February 2011 Development
  • Akalabeth gamei found now that someone ported an ansi-basic game (coded in 1979?) to msx-basic - what about a zx-spectrum basic version of it? ;) https://plus.goo…

    ... =k1 TO plots:
    READ x1,y1,draws: PLOT FN x(x1),FN y(y1 ... ):
    FOR d=k1 TO draws:
    READ x2,y2: DRAW ... FN x(x2),-y2 ...
    Battle Bunny Battle Bunny September 2016 Sinclair Basic
<1234567…34>

Latest Posts

  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Happy 40th Birthday to the Amstrad CPC464!
    Your Spec-chum on 7:28AM
  • Your Favorite Magazine Cover Tapes.
    Paradigm Shifter on 1:28AM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • I am currently watching.....
    zx1 on April 11
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11
  • Footballer of the year - translated version
    firelord on April 11

HitBox

Word Docs Hits
draw 5.6K 8.5K
x1 292 991
y1 167 706
to 549.6K 1.6M
x2 583 1.3K
y2 131 436

Related Threads

  • 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…
  • Fastest way to decide which pixel to paint in order to draw a straight line(after I saw "Bresenhams circle algorithm" in development forum, I decided to ask this in here)<br /> <br /> in fact, I want to accelerate a car towa…
  • Now seems to be a good time to add to your collectionsI have bought a few spectrum items to add to my collection recently, had i bought them a year or two ago they would have cost double. This is one of …
  • Update to Image to ZX Spec to 1.3.1I'm inbetween jobs at the moment and felt the need to add a new feature - the ability to export anim gifs.<br /> <br /> [IMG]https://lh6.googleuserco…
  • Alternative to Poke 23659,0 to prevent a 'break in' to a Basic Program.Good morning everyone,<br /> <br /> My memory fails me these days but in the early days of programming I used to use Poke 23659,0 as a crude way of…
  • How to download games to micro sd card to play on Sinclair zx spectrum vegaHello<br /> Could anyone tell me how to download games from a website to a micro sd card to play on a Sinclair zx spectrum vega , I mean do I use a …
  • A game to port to... to make for... ZX Spectrum ?Hey there,<br /> <br /> I'm a game coder on Commodore computers (C64,CPlus/4,VIC20,Amiga) and I loooove the ZX Spectrum.<br /> I grew up with Comm…
  • How to copy file from tape (*.tap) to disks (*.dsk) ?I am using zx32 with win98 and i want (in the emulate +3) copy files from virtual tapes to virtual disks.<br /> <br /> I use =&gt; load "NameOfFile" …
  • how to make a (protected) .DSK to disk transfer ?I know how to make file transfers between .DSK files and physical disks (logical copy).<br /> <br /> However, how can be done a physical sector trans…
  • how to move fdd300's files to pc emulator?Hi!<br /> I have some diskettes 3" for FDD3000 drive for Timex 2048. How can I read these 3"disk and move to PC ? I have some my own demos and rest s…

Related Searches

  • from bedrooms to billions
  • z80 to tape
  • snapshot to tape
  • linux tzx to wav
  • trd files to image
  • fastest way to clear screen
  • user name and password to download emulator
  • convert src files to
  • rst8 return to basic
  • return to basic
  • unable to log in
  • asm draw character
  • how to download games
  • how to download games for vega
  • usr0 to 128
  • the adventure game i m trying to complete
  • draw to
  • convert draw to plot
  • convert lenght and angle to draw comman
  • draw x2

Copyright © 2024 World of Spectrum