CPCWiki forum

General Category => Programming => Topic started by: mv on 16:46, 17 March 25

Title: CPCBasicApps with examples from Rosetta Code
Post by: mv on 16:46, 17 March 25
Do you know Rosetta Code? It's a great resource that showcases coding examples for many different tasks in a huge variety of programming languages — including Locomotive BASIC.
You can check out the Locomotive BASIC tasks here:
👉 Rosetta Code - Locomotive BASIC: https://rosettacode.org/wiki/Category:Locomotive_Basic

I've gathered these examples and put them into CPCBasicApps, so they're easy to run and explore:
👉 CPCBasicApps - Rosetta Collection: https://benchmarko.github.io/CPCBasicApps/rosetta/

When opening CPCBasicTS, you can select the "rosetta" collection and then
select an example or use the "Gallery" button to select from an image gallery.

Here's a direct link to one of the examples, the Barnsley Fern:
🌿Barnsley Fern Example: https://benchmarko.github.io/CPCBasicTS/?database=rosetta&example=barnsley

I also found out that speech synthesis is available in modern browsers.
So I wrote a little JS-RSX extension for CPCBasicTS that makes |say (and |pitch) available. You can test it out here:
🗣� Speech Synthesis Example: https://benchmarko.github.io/CPCBasicTS/?database=rosetta&example=speech

For those interested in the code, the JS-RSX is here on GitHub:
speech.rsx.js on GitHub:https://github.com/benchmarko/CPCBasicApps/blob/master/rosetta/speech.rsx.js
Title: Re: CPCBasicApps with examples from Rosetta Code
Post by: Prodatron on 18:27, 17 March 25
Quote from: mv on 16:46, 17 March 25I've gathered these examples and put them into CPCBasicApps, so they're easy to run and explore:
👉 CPCBasicApps - Rosetta Collection: https://benchmarko.github.io/CPCBasicApps/rosetta/


Hi Marko, thanks a lot, these are very cool and inspiring examples!
Powered by SMFPacks Menu Editor Mod