Skip to content
This repository was archived by the owner on Aug 25, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
c9e8414
update
hounslowcodeclub Jun 16, 2018
b0d577d
changing title
hounslowcodeclub Jun 16, 2018
6871f6f
Update index.md
hounslowcodeclub Jun 16, 2018
18dbe0f
Update index.md
hounslowcodeclub Jun 16, 2018
e5b90c3
project template added
hounslowcodeclub Jun 16, 2018
061e080
Update index.md
hounslowcodeclub Jun 16, 2018
37e0114
Merge branch 'new-layout' of https://github.com/hounslowcodeclub/webd…
hounslowcodeclub Jun 16, 2018
aca4a30
save it
hounslowcodeclub Jun 16, 2018
b2618ef
Merge branch 'new-layout' of https://github.com/hounslowcodeclub/webd…
hounslowcodeclub Jun 16, 2018
3d052cb
Update index.md
hounslowcodeclub Jun 16, 2018
a6ab54f
basic structure
hounslowcodeclub Jun 16, 2018
a2aa740
Update index.md
hounslowcodeclub Jun 20, 2018
019a2c0
Update index.md
hounslowcodeclub Jun 20, 2018
1cfc158
Update index.md
hounslowcodeclub Jun 20, 2018
9ddfd42
Update index.md
hounslowcodeclub Jun 20, 2018
c2c8bff
Update index.md
hounslowcodeclub Jun 20, 2018
aa2b47d
Add files via upload
hounslowcodeclub Jun 20, 2018
2893634
Add files via upload
hounslowcodeclub Jun 20, 2018
c407860
Update index.md
hounslowcodeclub Jun 20, 2018
e13d45a
Add files via upload
hounslowcodeclub Jun 20, 2018
9731cde
Update index.md
hounslowcodeclub Jun 20, 2018
2708388
Update index.md
hounslowcodeclub Jun 20, 2018
a60f935
Add files via upload
hounslowcodeclub Jun 20, 2018
ae9a0d1
Update index.md
hounslowcodeclub Jun 20, 2018
ac79d1e
Add files via upload
hounslowcodeclub Jun 20, 2018
f27ce0a
Add files via upload
hounslowcodeclub Jun 20, 2018
6e18a5a
Update index.md
hounslowcodeclub Jun 20, 2018
72d49a5
Update index.md
hounslowcodeclub Jun 20, 2018
cc4dab2
Add files via upload
hounslowcodeclub Jun 20, 2018
583349b
Update index.md
hounslowcodeclub Jun 20, 2018
2bb7a18
Add files via upload
hounslowcodeclub Jun 20, 2018
dbdf371
Add files via upload
hounslowcodeclub Jun 20, 2018
d47d6dc
Add files via upload
hounslowcodeclub Jun 20, 2018
93cbbe8
Update index.md
hounslowcodeclub Jun 20, 2018
8b865f8
Update index.md
hounslowcodeclub Jun 20, 2018
a6b95e1
Update index.md
hounslowcodeclub Jun 20, 2018
8e94dfa
Add files via upload
hounslowcodeclub Jun 20, 2018
48fb24f
Add files via upload
hounslowcodeclub Jun 20, 2018
4caad17
Update index.md
hounslowcodeclub Jun 20, 2018
6304196
Update index.md
hounslowcodeclub Jun 20, 2018
a008884
Update index.md
hounslowcodeclub Jun 20, 2018
6ac4bcd
Update index.md
hounslowcodeclub Jun 20, 2018
2d8c402
Add files via upload
hounslowcodeclub Jun 20, 2018
51215f6
Update index.md
hounslowcodeclub Jun 20, 2018
4d467df
Update index.md
hounslowcodeclub Jun 20, 2018
d10ed98
Update index.md
hounslowcodeclub Jun 20, 2018
7f0d82c
Update index.md
hounslowcodeclub Jun 20, 2018
4ed3c42
Add files via upload
hounslowcodeclub Jun 20, 2018
4e8a01d
Add files via upload
hounslowcodeclub Jun 20, 2018
58f9d6c
Add files via upload
hounslowcodeclub Jun 20, 2018
ab9bd89
Update index.md
hounslowcodeclub Jun 20, 2018
07bf38f
Update index.md
hounslowcodeclub Jun 20, 2018
a109963
Update index.md
hounslowcodeclub Jun 20, 2018
5b16183
Update index.md
hounslowcodeclub Jun 20, 2018
7d2ed0b
Update index.md
hounslowcodeclub Jun 20, 2018
bb48b3a
Update index.md
hounslowcodeclub Jun 23, 2018
dc6723a
Update index.md
hounslowcodeclub Jun 23, 2018
8ecc803
Update index.md
hounslowcodeclub Jun 23, 2018
7cc472b
Update index.md
hounslowcodeclub Jun 23, 2018
838365e
Update index.md
hounslowcodeclub Jun 23, 2018
6e9c641
Create follow.html
hounslowcodeclub Jun 25, 2018
cf72ab8
Delete follow.html
hounslowcodeclub Jun 25, 2018
4f9632a
Create index.md
hounslowcodeclub Jul 7, 2018
e5452e5
Update index.md
hounslowcodeclub Jul 7, 2018
3131f23
Update index.md
hounslowcodeclub Jul 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions en-GB/creating-patterns/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: Creating patterns
description: Using basic shapes creating geometric patterns.
notes: "notes.md"
layout: project
new: true
project-type: community
---

# Introduction { .intro }
In this project, you'll create different geometric patterns without repeating code using loops. You'll be introduced the basics of JavaScript loops to make different geometrical patterns.

<iframe src="https://trinket.io/embed/html/d196c4b355?outputOnly=true" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

# Step 1: What is loop? { .activity }
In programming, loops can be used to avoid repetition of same lines of code with slight variations.

## Activity Checklist { .check }
+ + You'll be using a website called Trinket to write HTML. Open this Trinket: <a href="https://trinket.io/embed/html/2c51554c41" target="_blank">jumpto.cc/creatingpatterns-intro</a>.




Binary file added en-GB/making-shapes/images/cam1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/coordinate.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/coordinate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/ellipse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/ellipse1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/fish.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/java1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/java2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/javafunc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/javafunc1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/line2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/radius.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/rect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/tri.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added en-GB/making-shapes/images/tri2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
102 changes: 102 additions & 0 deletions en-GB/making-shapes/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
title: Making shapes
description: Using basic shapes creating objects.
notes: "notes.md"
layout: project
new: true
project-type: community
---

# Introduction { .intro }

In this project, you'll create objects by combining simple shapes. You'll be introduced the basics of JavaScript to make different geometrical shapes using HTML Canvas.

<iframe src="https://trinket.io/embed/html/cfe39e41f3?outputOnly=true" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

# Step 1: What is Javascript? { .activity }

Javascript is a programming language used to make webpages interactive.Let's have a look at an example!

## Activity Checklist { .check }
+ You'll be using a website called Trinket to write HTML. Open this Trinket: <a href="https://trinket.io/embed/html/50ddc249a1" target="_blank">jumpto.cc/makingshapes-intro</a>.
The project should look like this:
![screenshot](images/java1.png)
+ The code within the <script> </script> tag is the Javascript code.
+ Within the script tags their are two functions:
1- function setup - where the canvas is created and background is set.
2- function draw - where you can draw shapes.

+ Now , lets create the canvas and give it a background color.For creating canvas we have to write 'createCanvas',which is written in CAMEL CASE meaning if you have to write 'car wash' it will be written as 'carWash'.Canvas can be as big as the size of the browser window.

![screenshot](images/javafunc1.png)

Here, Canvas is extending the whole width and height of the browser window.
Background color for example red can be specified as 'red' or in RGB format as ('255, 0, 0') or HEX as ('#FF5733').

![screenshot](images/java2.png)

+ Let's draw a rectangle or square shapes.
For rectangle or square shapes the code is :
rect(x , y , width , height ) .
![screenshot](images/coordinate.png)

+ The top left corner of the canvas corresponds to x=0 and y=0.The x-coordinates increases left to right ,while y-coordinates increases downwards.So shapes can be made on different places on the canvas according to their x an y coordinates.

![screenshot](images/rect.png)

+ The difference between rectangle and square is that square has same width and height whereas rectanlge has different width and height .
+ For filing the shapes with color ,write the code " fill('color name or HEX or RGB') " . 'noFill' is used if you don't want any color.


+ Let's draw a ellipse or circle shapes.
ellipse(x , y, width and height ).

![screenshot](images/ellipse1.png)

Ellipse just like a rectangle has different width and height , while circle has same width and height.

![screenshot](images/ellipse.png)



## Save Your Project {.save}

__You don't need a Trinket account to save your projects!__

If you don't have a Trinket account, click the down arrow and then click 'Link'. This will give you a link that you can save and come back to later. You'll need to do this every time you make changes, as the link will change!

##Challenge: Make a camera.

![screenshot](images/cam1.png)

For making a camera use rect and ellipse code .
+ Hint For making circles inside the circle use this code:

![screenshot](images/radius.png).

ellipseMode(RADIUS) uses the the x and y parameters of the first circle as the shape's center point, but uses the width and height parameters to change the size of the circle.

## Save Your Project {.save}

+ Let's make some lines and triangles.
+ For lines you will be using : line(x1 , y1 , x2 , y2 )

![screenshot](images/line.png)

Instead, of 'fill' ,here we've used 'stroke' .Stroke is used for making a line or borders of different shapes , while strokeWidth determines the thickness of the stroke.Use 'noStroke' if you don't need any borders.

![screenshot](images/line2.png)

+ for triangles the code is: triangle(x1 , y1 , x2 , y2 , x3 , y3 )

![screenshot](images/tri2.png)

![screenshot](images/tri.png)

##Challenge: Make a fish with trangles.

![screenshot](images/fish.png)

## Save Your Project {.save}


6 changes: 6 additions & 0 deletions en-GB/making-shapes/materials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: ProjectName - Materials
layout: project-materials
volunteer-resources:
project-resources:
---
42 changes: 42 additions & 0 deletions en-GB/making-shapes/notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
title: ProjectName — Volunteer Notes
---

#Introduction:
Explain the project, focusing on what children will learn. Remember that these notes will be read by club leaders and not children.

#Online Resources

We recommend using [trinket](https://trinket.io/) to write HTML & CSS online. This project contains the following trinkets:

+ ['ProjectName' starting point -- URL](URL)

Children can also make use of this blank trinket [(jumpto.cc/html-blank)](http://jumpto.cc/html-blank) to write their own HTML & CSS, or alternatively they can use this template trinket [(jumpto.cc/html-template)](http://jumpto.cc/html-template).

There is also a trinket containing a sample solution to the challenges:

+ ['ProjectName' Finished](URL)

#Offline Resources
This project can be [completed offline](https://www.codeclubprojects.org/en-GB/resources/webdev-working-offline/) if preferred. You can access the project resources by clicking the 'Project Materials' link for this project. This link contains a 'Project Resources' section, which includes resources that children will need to complete this project offline. Make sure that each child has access to a copy of these resources. This section includes the following files:

+ ...List files here

You can also find a completed version of this project's challenges in the 'Volunteer Resources' section, which contains:

+ ...List files here

(All of the resources above are also downloadable as project and volunteer `.zip` files.)

#Learning Objectives
List the skills taught in this project, for example:
+ Variables;
+ Lists.

Link to Digital Making Curriculum.

#Challenges
+ "Challenge name" - explain the aim of each challenge - what skills will be used, and what is the outcome?

#Frequently Asked Questions
You can also add answers to common questions here. This will help club leaders when undertaking your new project with children. This section can be removed if it is not necessary.