You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 7-animation/1-bezier-curve/article.md
+25-24Lines changed: 25 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,58 +140,59 @@ Terkadang kita memiliki hal lain: untuk menggambar lengkungan *melewati beberapa
140
140
Terdapat beberapa rumus matematika seperti lengkungan, untuk contoh [Lagrange polynomial](https://en.wikipedia.org/wiki/Lagrange_polynomial). Didalam grafis komputer [spline interpolation](https://en.wikipedia.org/wiki/Spline_interpolation) sering digunakan untuk membangun lengkungan yang halus dengan menyambungkan beberapa titik.
141
141
```
142
142
143
-
## Maths
143
+
## Matematikal
144
144
145
-
A Bezier curve can be described using a mathematical formula.
145
+
Sebuah _Bezier Curve_ bisa di buat dengan menggunakan rumus matematika.
146
146
147
-
As we saw -- there's actually no need to know it, most people just draw the curve by moving points with a mouse. But if you're into maths -- here it is.
147
+
Seperti yang kita lihat -- sebenarnya tidak perlu kita ketahui, kebanyakan orang membangunnya dengan menggerakan titik menggunakan _mouse_. Tapi jika kamu menyukai matematika, beginilah caranya.
148
148
149
-
Given the coordinates of control points <code>P<sub>i</sub></code>: the first control point has coordinates <code>P<sub>1</sub> = (x<sub>1</sub>, y<sub>1</sub>)</code>, the second: <code>P<sub>2</sub> = (x<sub>2</sub>, y<sub>2</sub>)</code>, and so on, the curve coordinates are described by the equation that depends on the parameter `t`from the segment `[0,1]`.
149
+
Diberikan koordinat dari titik kontrol <code>P<sub>i</sub></code>: titik kontrol pertama memiliki koordinat <code>P<sub>1</sub> = (x<sub>1</sub>, y<sub>1</sub>)</code>, yang kedua <code>P<sub>2</sub> = (x<sub>2</sub>, y<sub>2</sub>)</code>, dan seterusnya, koordinat lengkungannya dejelaskan dengan persamaan yang bergantung pada parameter `t`dari bagian `[0.1]`.
Instead of <code>x<sub>1</sub>, y<sub>1</sub>, x<sub>2</sub>, y<sub>2</sub>, x<sub>3</sub>, y<sub>3</sub></code> we should put coordinates of 3 control points, and then as`t`moves from`0`to`1`, for each value of`t`we'll have `(x,y)`of the curve.
170
+
Daripada <code>x<sub>1</sub>, y<sub>1</sub>, x<sub>2</sub>, y<sub>2</sub>, x<sub>3</sub>, y<sub>3</sub></code> kita harus memasukan koordinat dari 3 titik kontrol dan lalu selama`t`bergerak dari`0`menuju`1`, untuk setiap nilai dari`t`kita harus memiliki `(x,y)`dari lengkungannya.
171
171
172
-
For instance, if control points are`(0,0)`, `(0.5, 1)`and`(1, 0)`, the equations become:
172
+
Contoh, jika titik kontrol adalah`(0,0)`, `(0,5, 1)`dan`(1, 0)`, persamaannya menjadi:
Now as`t`runs from`0`to`1`, the set of values `(x,y)`for each`t`forms the curve for such control points.
177
+
Sekarang selama`t`berjalan dari`0`menuju`1`, nilai dari `(x,y)`untuk setiap`t`membentuk lengkungan untuk titik kontrolnya.
178
178
179
-
## Summary
179
+
## Ringkasan
180
180
181
-
Bezier curves are defined by their control points.
181
+
_Bezier Curves_ didefinisikan menggunakan titik kontrol.
182
182
183
-
We saw two definitions of Bezier curves:
183
+
Kita melihat dua definisi dari _Bezier Curves_:
184
184
185
-
1.Using a drawing process: De Casteljau's algorithm.
186
-
2.Using a mathematical formulas.
185
+
1.Menggunakan proses gambar: _Algoritma De Casteljau's_.
186
+
2.Menggunakan rumus matematika.
187
187
188
-
Good properties of Bezier curves:
188
+
Properti yang bagus dari _Bezier Curve_:
189
189
190
-
- We can draw smooth lines with a mouse by moving control points.
191
-
- Complex shapes can be made of several Bezier curves.
190
+
Kita bisa membuat garis halus dengan sebuah _mouse_ dengan menggerakan titik.
192
191
193
-
Usage:
192
+
- Bentuk yang rumit bisa dibuat dengan beberapa _Bezier Curve_.
194
193
195
-
- In computer graphics, modeling, vector graphic editors. Fonts are described by Bezier curves.
196
-
- In web development -- for graphics on Canvas and in the SVG format. By the way, "live" examples above are written in SVG. They are actually a single SVG document that is given different points as parameters. You can open it in a separate window and see the source: [demo.svg](demo.svg?p=0,0,1,0.5,0,0.5,1,1&animate=1).
197
-
- In CSS animation to describe the path and speed of animation.
194
+
Penggunaan:
195
+
196
+
- Didalam grafis komputer, permodelan, vektor dan editor grafis. _Fonts_ di kategorikan sebagai _Bezier Curves_.
197
+
-Di dalam pembangunan website -- untuk grafis didalam kanvas dan didalam format SVG. Untuk informasi, contoh yang ada diatas menggunakan format SVG. Contoh-contoh itu menggunakan satu dokumen SVG yang diberikan beberapa titik sebagai parameter. Kamu bisa melihat _source_ nya di [demo.svg](demo.svg?p=0,0,1,0.5,0,0.5,1,1&animate=1).
198
+
- Dalam animasi CSS untuk menjelaskan _path_ dan kecepatan dari animasi.
0 commit comments