Friday, October 22, 2010

In which we learn how to add colour to programs

I realize...I'm going to miss five days of school this month. I was already absent for three days, all for X-Country meets. Then on Tuesday next week, I'll be away for Metros (also X-Country) and on Thursday of next week, the Grade 9 science classes will be going to Rouge Valley.
Now that I think about it, there's also a possibility that I'll miss school on November 3rd for Take Your Kids to Work Day.

Oh, and this is completely off-topic, but: in class today, after Zarin told me what happened to her, I realized that my chances of getting hit by a car are higher when I'm sleepy. For example, there was a time when I almost got hit by a car twice in the same day.
I space out when I'm tired.

Going back to the topic of Computer Science...

Today we learnt how to change the text and background colour in the run window, for Turing. There are two keywords we can use: colour, which changes the text colour; and colourback, which changes the run window's background colour. I have yet to experiment with these keywords, but I plan on doing so over the weekend.

We also learnt how to put in special characters. (And this is where ASCII comes in!) There are two keywords that we use: ord, which stands for ordinal; and chr, which stands for character.
For example, if you want to put the capital letter "A", you can write either one of these programs:

#1:
put ord ("A")

#2:
put chr (65)

And...I guess that's it. I've been listening to Canterella by Kaito Shion (one of the Vocaloids - computer-generated voices) for the past hour. I love that song!
I'll shut up before I start fangirling about Kaito.

Ja ne~!

No comments:

Post a Comment