-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from GAIB20/staging
Project v1.0
- Loading branch information
Showing
32 changed files
with
2,177 additions
and
624 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# 2D Web-Based CAD (Computer Aided Design) | ||
|
||
> Tugas Besar 1 IF3260 Grafika Komputer | ||
![](./doc/img/program.png) | ||
|
||
## Daftar Isi | ||
- [Cara Menjalankan Program](#cara-menjalankan-program) | ||
- [Membuat Objek Baru](#membuat-objek-baru) | ||
- [Shape and Point Menu](#shape-and-point-menu) | ||
- [Transformasi Objek](#transformasi-objek) | ||
- [Menghapus elemen](#menghapus-elemen) | ||
- [Mengganti Warna Elemen](#mengganti-warna-elemen) | ||
- [Menganimasi Objek](#menganimasi-objek) | ||
- [Menggabung Objek](#menggabung-objek) | ||
- [Menyimpan dan Membuka File](#menyimpan-dan-membuka-file) | ||
- [Help](#help) | ||
- [Kontributor](#kontributor) | ||
|
||
## Cara Menjalankan Program | ||
|
||
Buka file `index.html` pada browser | ||
|
||
### Membuat Objek Baru | ||
1. Pilih salah satu icon objek yang ingin dibuat (**Garis**, **Persegi**, **Persegi Panjang**, **Polygon**) pada ***toolbar*** | ||
|
||
![](./doc/img/toolbar.png) | ||
|
||
2. Untuk **Polygon** | ||
- Klik pada canvas untuk menambahkan titik | ||
- Sebuah Polygon akan **terbentuk** ketika sudah terdapat minimal **3 titik** | ||
3. Selain Polygon (**Garis**, **Persegi**, **Persegi Panjang**) | ||
- *Drag* pada canvas untuk membuat objek | ||
- Objek akan **terbentuk** ketika *drag* dilepas | ||
|
||
### Shape and Point Menu | ||
Setiap melakukan *action*, gunakan menu ini untuk memilh elemen untuk melakukan aksi | ||
|
||
<img src="./doc/img/shapePointMenu.png" width=150> | ||
|
||
|
||
|
||
### Transformasi Objek | ||
<img src="./doc/img/Transformation.png" width=150> | ||
|
||
1. Pilih elemen objek yang ingin ditransformasi (**Objek** atau **Titik**) pada ***Shape and Point Menu*** | ||
2. Gunakan ***Slider*** untuk melakukan transformasi | ||
3. Transformasi yang dapat dilakukan: | ||
- ***Translation*** (X, Y) | ||
- Menggeser koordinat **Objek** atau **Titik** | ||
- ***Rotation*** (Derajat) | ||
- Memutar **Objek** terhadap titik pusat | ||
- ***Scaling*** | ||
- Memperbesar atau memperkecil **Objek** terhadap titik pusat | ||
- ***Shearing*** (X, Y) | ||
- Membengkokkan **Objek** terhadap sumbu X dan/atau Y | ||
- ***Transform*** (X, Y) | ||
- Mengubah panjang dan/atau lebar **Objek** | ||
|
||
### Menghapus elemen | ||
1. Pilih elemen yang ingin dihapus (**Objek** atau **Titik**) pada ***Shape and Point Menu*** | ||
2. Klik tombol **Delete** | ||
|
||
### Mengganti Warna Elemen | ||
![](./doc/img/ColorPicker.png) | ||
1. Pilih elemen yang ingin diubah warnanya (**Objek** atau **Titik**) pada ***Shape and Point Menu*** | ||
2. Pilih warna yang diinginkan pada ***Color Picker*** | ||
|
||
### Menganimasi Objek | ||
1. Pilih elemen **objek** yang ingin dianimasikan pada ***Shape and Point Menu*** | ||
2. Klik tombol **Animate** untuk memulai animasi | ||
|
||
### Menggabung Objek | ||
1. Pilih elemen **objek** yang ingin digabungkan pada ***Shape and Point Menu*** | ||
2. Klik tombol **Union** untuk menggabungkan objek-objek yang dipilih | ||
|
||
### Menyimpan dan Membuka File | ||
![](./doc/img/SaveLoad.png) | ||
1. Klik tombol **Save** untuk **menyimpan** objek ke dalam file `.json` | ||
2. Klik tombol **Load** untuk **memuat** objek pada file `.json` yang telah disimpan sebelumnya | ||
|
||
### Help | ||
Silahkan klik simbol help pada program untuk melihat cara penggunaan program | ||
|
||
![](./doc/img/help.png) | ||
|
||
|
||
## Kontributor | ||
|
||
**Kelompok 02 K-03 MaKaN** | ||
|
||
| NIM | Nama | | ||
| --- | --- | | ||
| 13521007 | Matthew Mahendra | | ||
| 13521023 | Kenny Benaya Nathan | | ||
| 13521024 | Ahmad Nadil | |
Empty file.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.