Giter Club home page Giter Club logo

cpcbasic's Issues

Awesome Project

Hi! This is not an actual issue :) Sorry, I didn't know how to comment otherwise and I just wanted to say "Thank You" for this project. CPCBasic is fun and awesome. Amstrad CPCs were great and writing stuff in Basic has always been awesome (and easier and more fun than Javascript for small programs). Now that machine are so fast, it feels even better ๐Ÿ‘

Here's one tiny program for you:

1 ' CIRCLE WRITER... by "COMTEC", found in an old CPC Magazine
2 ' and very slightly modified.   Very slow on a real CPC, but
3 ' now ultra fast with *CPC Basic* on a modern computer.  ;-D
5 ' 
6 text$="CPC BASIC is SUPER AWESOME "
7 '
10 MODE 1:mo=16:INK 0,0:INK 1,26:INK 2,13:BORDER 0:PAPER 0:PEN 1
20 le=120:he=120:th=64:x=320:y=200:col=1
30 length=LEN(text$):steps=360/length:sti=steps/mo:thi=th/mo
40 PEN 2:LOCATE 1,25:PRINT text$
50 FOR nu=0 TO length-1
60 FOR i=0 TO mo-1:FOR o=0 TO mo-1
70 IF TEST((nu*mo)+i,o)<>0 THEN 90
80 NEXT o,i,nu
81 INK 2,0:CALL &BB18:PEN 1:END
90 de=-(nu*steps)-sti*i-180:th=thi*o:DEG
100 plot x+(le+th)*COS(de),y+(he+th)*SIN(de),col:GOTO 80

Thanks! ๐Ÿ’ฏ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.