zxspectrumgraphics.wordpress.com
Fan | ZX Spectrum Graphics
https://zxspectrumgraphics.wordpress.com/2013/04/21/fan
Larr; High Resolution Displays. April 21, 2013. Since no parameters are input by the program, simply type RUN and watch the pattern develop on the screen in constantly changing colours. 50 – set background colour. 110 – initialisation variables change for new pattern. 120 – initialise random seed. 130 – set starting ink colour for first line. 300-350 – set values for line draw subroutine. 360-370 – set new line drawing colour. 400-510 – line drawing subroutine. 600-660 – border drawing subroutine. 620 DR...
zxspectrumgraphics.wordpress.com
Advanced Colour | ZX Spectrum Graphics
https://zxspectrumgraphics.wordpress.com/2013/04/20/advanced-colour
Larr; Random Colours. April 20, 2013. To set the INK colour for a character, a binary value between 0 and 7 is placed in the first three bits of the attribute memory by corresponding to that character. Similarly to set the PAPER colour a binary value between 0 and 7 is placed in bits 3, 4 and 5 of the appropriate attribute byte. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). Notify me of new comments via email.
zxspectrumgraphics.wordpress.com
Random Colours | ZX Spectrum Graphics
https://zxspectrumgraphics.wordpress.com/2013/04/20/random-colours
April 20, 2013. Background PAPER colours can be used to fill blocks of the screen with different colours thereby generating interesting effects. Since no parameters are input by the program simply type RUN and watch the program display a constantly changing coloured pattern. 50 – draw border around screen using subroutine at 400. 110 – initialise random seed. 120 – set starting point on screen. 160 – 170 set random variables for colour and number of characters of same colour. 1 REM RANDOM COLOURS. 230 IF...
zxspectrumgraphics.wordpress.com
Bar Chart | ZX Spectrum Graphics
https://zxspectrumgraphics.wordpress.com/2013/04/21/bar-chart
April 21, 2013. This program requires no input parameters, simply type RUN and it will display a barchart on the screen using the values in the data statements. 50 – draw border around screen using subroutine at 500. 80-90 – set colours. 110 – position of start of first bar from left border edge. 120 – height above bottom border. 130 – border width. 150 – read bar height from data table. 200-250 – draw bar. 270 – calculate bottom left corner of next bar. 500-560 – border drawing subroutine. 50 GO SUB 500.
zxspectrumgraphics.wordpress.com
Rectangle 2 | ZX Spectrum Graphics
https://zxspectrumgraphics.wordpress.com/2013/04/21/rectangle-2
Larr; Rectangle 3. April 21, 2013. This is a variation of the program Rectangle 1. The difference is that it is the coordinates of the centre of the box which are input rather than the bottom left coordinates. The two programs are virtually identical except for the addition of lines 310 to 370 which simply convert the centre coordinates to the bottom left coordinates. Using the coordinates of the centre of a displayed shape is the conventional method of positioning a shape on the screen. 1 REM RECTANGLE 2.
zxspectrumgraphics.wordpress.com
An Overview | ZX Spectrum Graphics
https://zxspectrumgraphics.wordpress.com/2013/04/20/an-overview
April 20, 2013. In a flight simulator the position of viewing would depend on how the pilot moved the controls. Simulated landings and take offs can thus give a visual feedback to the pilot through the use of such computer graphics. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your WordPress.com account. ( Log Out. You are commenting using your Twitter account. ( Log Out.
zxspectrumgraphics.wordpress.com
High Resolution Displays | ZX Spectrum Graphics
https://zxspectrumgraphics.wordpress.com/2013/04/21/high-resolution-displays
April 21, 2013. Obviously one could display a point on the screen by using the POKE command to set the required bit in the display file, but the calculation of the required address makes this a slow and cumbersome operation. This method would be employed if a machine code was being used to generate the display, but in Basic it is far easier to use one of the Basic commands provided. There are four graphics commands in Basic:. PLOT x, y this plots a single pixel at the specified x and y coordinates. You a...
zxspectrumgraphics.wordpress.com
Rainbow | ZX Spectrum Graphics
https://zxspectrumgraphics.wordpress.com/2013/04/21/rainbow
April 21, 2013. This program requires no input parameters, therefore simply enter RUN and watch the computer draw a coloured rainbow on the screen. 90 – draw border around screen using subroutine at 500. 110 – coordinates of semicircle centre. 120 – start and end angle of semicircle. 130 – dot spacing in drawing semicircle. 140-160 – convert angles to radians. 200 – loop to draw four coloured arcs. 210 – get arc colour from data table. 220 – set to plot in that colour. 250-330 – draw arc. 90 GO SUB 500.
zxspectrumgraphics.wordpress.com
About | ZX Spectrum Graphics
https://zxspectrumgraphics.wordpress.com/about
From the back of the book…. Written by Nick Hampshire, author of many books on popular computing and publisher of. This book provides the reader with an introduction to programming techniques used to generate graphics displays on a Sinclair SPECTRUM. Topics covered include:. Two dimensional shape plotting. Shape scaling and stretching. Plotting using matrix manipulation. Three dimensional shape plotting. First published in 1982 by. Gerald Duckworth and Co. Ltd. The Old Piano Factory. You are commenting u...