BBC BASIC for Windows
« need a coridor with shadows? try this »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:19pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: need a coridor with shadows? try this  (Read 306 times)
RockOve
New Member
Image


member is offline

Avatar




PM


Posts: 7
xx need a coridor with shadows? try this
« Thread started on: May 26th, 2016, 01:31am »

Code:
     
 rem VDU 23,22,width;height;charx,chary,ncols,charset
 vdu 23,22,1125;750;32,32,16,0:rem nikon d3300 size ratio (xy.5)
      origin 1125,750:rem center poiter moved to center of the screen
      :
      for z%=0 to 1125
        c%=255-255/1125*z%
        c1%=sin(rad(z%))*255 or 64
        x%=z%
        y1%=750/1125*z%
        y2%=-750/1125*z%
        y%=750/1125*z%
        :
        :rem setting colours
        colour 1,c1%,0,0:rem red
        colour 2,0,c1%,0:rem green
        colour 3,0,0,c1%:rem blue
        colour 4,c1%,c1%,c1%:rem white
        :
        :rem lines
        gcol 1
        line x%,y1%,x%,y2%
        gcol 2
        line -x%,y1%,-x%,y2%
        gcol 3
        line -x%,y%,x%,y%
        gcol 4
        line -x%,-y%,x%,-y%
      next
 
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls