TORONTO KIDS COMPUTER CLUB | admin
1
archive,paged,author,author-admin,author-1,paged-59,author-paged-59,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Author: admin

28 Dec js-06

//dino body var body = new THREE.CubeGeometry(100, 100, 100); var cover = new THREE.MeshNormalMaterial(); var dino = new THREE.Mesh(body, cover); marker.add(dino); // dino neck var shape = new THREE.CubeGeometry(60, 50, 50); ...

Read More

27 Dec js-04-1

<body></body> <script src="/three.js"></script> <script src="/controls/FlyControls.js"></script> <script> // The "scene" is where stuff in our game will happen: var scene = new THREE.Scene(); var flat = {flatShading: true}; var light = new THREE.AmbientLight('white', 0.8); scene.add(light); // The "camera" is what sees the stuff: ...

Read More

27 Dec 2021 Winter Camp -05

Question 1: Write a program to use easygui enterbox that asks for your name, then street, then city, then province, then postal code (all in easygui message boxes). The program should then display a mailing-style full address that looks something like this: Hint: Do not forget to import easygui in order to...

Read More

24 Dec 2021 Winter Camp -04

Question 1: You are in a bike race which goes up and down a hill. You could create two variables: uphillDistance and downhillDistance give the distance (in km) of both parts of the race. Write a program that will print out the total distance for the...

Read More

23 Dec js-03

<body></body> <script src="/three.js"></script> <script> // The "scene" is where stuff in our game will happen: var scene = new THREE.Scene(); var flat = {flatShading: true}; var light = new THREE.AmbientLight('white', 0.8); scene.add(light); // The "camera" is what sees the stuff: ...

Read More

22 Dec 2021 Winter Camp -03

You can do Question 1~ 3 in Python IDLE: Question 1. Use float() to create a number from a string like ‘12.34’. Make sure the result is really a number! Question 2. Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded up...

Read More

21 Dec js-02

<body></body> <script src="/three.js"></script> <script> // The "scene" is where stuff in our game will happen: var scene = new THREE.Scene(); var flat = {flatShading: true}; var light = new THREE.AmbientLight('white', 0.8); scene.add(light); // The "camera" is what sees the stuff: ...

Read More

21 Dec js-01

<body></body> <script src="/three.js"></script> <script> // The "scene" is where stuff in our game will happen: var scene = new THREE.Scene(); var flat = {flatShading: true}; var light = new THREE.AmbientLight('white', 0.8); scene.add(light); // The "camera" is what sees the stuff: var aspectRatio = window.innerWidth / window.innerHeight; var camera = new THREE.PerspectiveCamera(75, aspectRatio, 1, 10000); camera.position.z =...

Read More

21 Dec Monday 17:00 Python Practice – 21.12.20.

Question 1: Continue coding the program, so the program will tell you whether you can pay in the zone: height color zone if<90 red 1 elif<105 blue 1, 2 elif <120 green 1,2,3 elif <135 yellow 1,2,3,4,5 elif <150 purple 4,5 else white 6 Please continue coding the following program: print('Welcome to the adventureland!') while True: # this line means forever h= int(input('Height:'))    if h <...

Read More