benchmarko / cpcbasic Goto Github PK
View Code? Open in Web Editor NEWCPCBasic - Run CPC BASIC in a Browser
Home Page: https://benchmarko.github.io/CPCBasic/
License: MIT License
CPCBasic - Run CPC BASIC in a Browser
Home Page: https://benchmarko.github.io/CPCBasic/
License: MIT License
Sorry. Wrong 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! ๐ฏ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.