If you are taking this to another project, please make sure you take all of the block definitions, and please give credit where it’s due. Type ‘Tutorial’ into the ‘Give it a go!’ box if you want a visual tutorial of how it works. If you look down the bottom of the frame, you’ll see the very block which does this typing. That’s right, all you will need to worry about when using this is one block. Going through each part: - ‘this’ is the text you want typed, - ‘X 1 2’ are the x-coördinates it is to write between, - ‘Y 1 2’ are the y-coördinates it is to write between, - ‘size’ is how big the letters will be (default is 1), and - ‘default colour’ is the colour it will change to if it fails to read a colour properly. (Please make sure that the default colour is correct, otherwise the block will not type at all as it will be stuck in an infinite loop of trying to set the colour.) - ‘line’ is which line of the text you start on. If not all the text prints, it will save the number of the next line to print in the variable ‘line’. If all of it prints, this will be set to 0. How do you set the colour, then? Simply put the colour in brackets in one of the following ways: - (#FFFF00) – Red green blue (RGB). A hexadecimal code which is very common for setting computer colours. Precede it with a #. (#RRGGBB) - (r255255000) – The same as above, but using decimal numbers (‘normal numbers’). These are the sorts of numbers you will find in many paint programs. Make sure each is 3 digits long and ordered Red, Green, Blue. Precede it with an r. (rRRRGGGBBB) - (h060100100) – Hue saturation value (HSV). As with the one above, make sure each value is 3 digits long, and ordered Hue, Saturation, Value. Precede it with an h. (hHHHSSSVVV) - (v305050) – A special way of writing HSV using only two characters each. This is vigesimal notation. (vHHSSVV) But what if you want to write something in brackets? Well, if it has a space inside it, you don’t have to worry. If there is no space inside, though, simply put a second set of brackets around it. If you want two, put a third set around it. Pretty simple, no? Then, there are a few special commands. (\n) – Creates a new line (like hitting the enter key). (\b) – Forces a following space not to be typed, which is useful in limited circumstances. (\s) – Forces a space to be typed, even when it normally couldn’t be. (\c) – Triggers a change in colour to the next colour defined in the text. That’s all there is to it, really. I hope you can use this program to its fullest potential.
Typer: https://scratch.mit.edu/projects/77031178/ Colour Typer 1.0: https://scratch.mit.edu/projects/78238452/ Colour Typer 1.1: https://scratch.mit.edu/projects/78387184/ After a year and a half, I decided that I should clean up my old Colour Typer system. The code was not designed well, as the colour system was tacked onto my original Typer system. This time, I rebuilt the system from scratch in order to get it faster and its code tidier, which is at least (a little bit) evident in the fact that it uses 25 variables and no lists (compared to the old Colour Typer’s 26 variables and two lists). Also, despite what I had said, the old system was not very user-friendly, given that it required the use of unusual characters to change colour or push a new line. I’ve abolished that old system in favour of a much simpler one, bracketed commands. These can be typed on any keyboard, and are also much easier to look at when reviewing the text. It will write any basic text with characters present on the 48-Key UK Keyboard. (This excludes the accented vowels and the ¦ and € characters; I'll (hopefully) get around to those eventually!) Unrecognised characters will be replaced with a ? character. Text will be written within a square of given corners. Please let me know what you think and tell me if you find any bugs. ~Keani --Change log: 6 June, 2017 - All known bugs from initial programming fixed and project shared.