Everything that we've drawn so far was in black. Now, black is a marvelous
color, but what if you'd like another one, such as one of these? These colors
have predefined names, and when you look here, you can see that every color is
a mixture of a red, green, and blue component. Red has only red, and no green
and blue. Blue has only blue and no red and green. Yellow has red and green,
and no blue. You can make other mixtures, and you'll explore that in the
exercises that are going to be coming up right now, let's just stick with red.
Let's say we have a rectangle that we want to draw in red. You set the color to
the color constant red in this way, and then when you draw it, it shows up in
red. Alternatively, you can call the fill method, and then the interior's also
drawn in red. Now you know everything about the graphics library to make fancy
drawings on your own. Go ahead and do the practice assignments with Sara. And
when you're done, maybe you'll be motivated to recreate Udacity train. Or
create a fancy drawing of your own and share it with us on the discussion
group.
Todo lo que hemos dibujado hasta ahora estaba en negro. El negro es un color maravilloso pero,
¿que pasa si quieres otro color, como uno de estos? Estos colores
tienen nombres predefinidos, y cuando miras aquí, puedes ver que cada color es
una mezcla de un componente rojo, uno verde y uno azul. Rojo tiene sólo rojo, no verde
ni azul. Azul tiene sólo azul, no rojo y verde. Amarillo tiene rojo y verde
y no tiene azul. Puedes hacer otras mezclas y explorarás eso en los
ejercicios que vienen ahora. En este momento vamos a seguir con el rojo.
Digamos que tenemos un rectángulo que queremos dibujar en rojo. Estableces el color a
la constante de color red de esta manera, y luego, cuando lo dibujas, se muestra en
rojo. Si lo prefieres, puede invocar el método fill (rellenar) y entonces el interior también
se dibuja en rojo. Ahora ya sabes todo acerca de la biblioteca de gráficos que necesitas para hacer dibujos
elegantes por tu cuenta. Sigue adelante y realiza las tareas de práctica con Sara. Y
cuando hayas terminado, tal vez te sientas motivado para recrear el tren Udacity o
crear tu propio dibujo elegante y compartirlo con nosotros en el grupo
de discusión.
Tout ce que nous avons
dessiné jusqu'ici était en noir.
Le noir est une couleur merveilleuse,
mais si vous en vouliez
une autre comme l'une d'elles?
Ces couleurs ont des noms prédéfinis
et quand vous regardez ici
vous voyez que chaque couleur est un mélange
d'un composant rouge, vert et bleu.
Le rouge n'a que du rouge
et pas de vert et de bleu.
Le bleu n'a que du bleu et
pas de rouge et de vert.
Le jaune a du rouge et du vert
et pas de bleu.
Vous pouvez faire d'autres mélanges,
et vous explorerez cela dans
les exercices qui viendront,
tenons-nous en rouge.
Disons que nous avons un rectangle
que nous voulons dessiner en rouge.
Définissez la couleur constante
comme étant rouge de cette façon
Puis lorsque vous la dessinez,
elle apparaît en rouge.
Ou sinon vous pouvez appeler
la méthode de remplissage,
puis l'intérieur est également
dessiné en rouge.
Maintenant, vous savez tout
sur la bibliothèque graphique
pour faire vos propres
dessins fantaisistes.
Allez-y et faites les exercices avec Sara.
Et quand vous aurez terminé,
peut-être serez-vous motivé
pour recréer le train Udacity.
Ou créez votre propre dessin et
partagez-le sur
le forum de discussion.
これまで描いてきたものはすべて黒一色でした
他にもこんな色を使いたいとしたらどうでしょう
これらの色には既に名前がありますが
すべてに赤、緑、青の要素が含まれています
ただ赤は赤のみで
青も青のみです
黄色は赤と緑で構成され青は入りません
他にも色は作れるのですが
そのうちに練習問題なども出てきますので
今はまずこの赤を使ってみてください
赤で長方形を描きたいとします
このように色を赤に設定して描き始めます
赤い線で表示されましたね
fillメソッドを使って
内側も赤で塗りつぶすこともできます
Graphicsライブラリを使って
素晴らしい絵が描けるようになりましたね
サラと練習問題をやってみてください
Udacity列車をもう一度
描いてみたくなるかもしれません
またはご自身の作品を作ってみて
ディスカッショングループでシェアしましょう
여태까지 여러분이 그린 것은 다 검은색 이었습니다. 검은색도 굉장히
좋은 색이지만, 여러분이 다른 색을 원한다면 어떨까요? 이런 색처럼 말이죠. 이 색들은
미리 정해진 이름들이 있습니다. 그리고 여러분이 여기를 볼 때, 모든 색들은
빨강, 초록, 그리고 파랑으로 섞여있다는 것을 알 수 있습니다. 빨강은 그저 빨강만 있고
초록이나 파랑이 없습니다. 노랑은 빨강이랑 초록이 있지만
파랑이 없죠. 여러분은 더 많은 혼합들을 만들 수 있고
지금 할 문제들로부터 탐색을 할 수 있습니다. 일단 빨강으로 합시다.
여기에 빨강색 직사각형이 있습니다. 여러분은 색을
빨강색으로 정해주세요, 그러면 직사각형은
빨강색으로 나타납니다. 그 대신에, 여러분은 fill 메소드를 호출할 수 있습니다. 그러면 안쪽도
빨강색으로 채워집니다. 이제 여러분은 그래픽 라이브러리에 대해서 다 알게 됐으니 여러분만의
멋진 그림을 그릴 수 있겠군요. 사라와 함께 연습 문제를 풀어보세요. 그리고
다 했으면 아마 여러분은 Udacity 기차를 만들게 될 겁니다. 아니면
토론 모임에 올릴 여러분만의 특별한 그림을
공유할 수 있습니다.
Alles dat we tot nu toe hebben
getekend, was in het zwart.
Zwart is een prachtige kleur,
maar wat als je een andere wilt,
zoals een van deze?
Deze kleuren hebben voorgedefinieerd
namen en als je hier kijkt,
kun je zien dat elke kleur een mengsel is
van een rode, groene en blauwe component.
Rood heeft alleen rood en
geen groen en blauw.
Blauw heeft alleen blauw en
geen rood en groen.
Geel heeft rood en groen
en geen blauw.
Je kunt andere mengsels maken,
en je zult dat onderzoeken in
de oefeningen die nu opkomen,
laten we gewoon doorgaan met rood.
Stel dat we een rechthoek
in het rood willen tekenen.
Je stelt de kleur in op de constante
kleur rood, op deze manier,
en als je het tekent,
wordt deze rood weergegeven.
Je kunt anders ook de vulmethode aanropen
en dan wordt het interieur ook
in rood getekend.
Nu weet je alles over
de grafische bibliotheek
om zelf denkbeeldige tekeningen te maken.
Ga je gang en doe
de oefenopdrachten met Sara.
Eens je klaar bent, ben je
misschien wel gemotiveerd
om de Udacity-trein na te maken
of om een eigen mooie tekening te maken
en het te delen op het forum.
Từ trước đến nay chúng ta mới chỉ vẽ mọi thứ bằng màu đen.
Màu đen rất tuyệt,
nhưng nếu bạn muốn chọn màu khác thì sao,
như mấy màu này chẳng hạn. Chúng đều
có tên xác định từ trước, và khi bạn nhìn
vào đây, bạn có thể thấy mỗi màu đều là
phối màu của màu đỏ, xanh lá, và xanh lam
Red chỉ có màu đỏ, không gồm màu xanh lá hay
xanh lam. Blue chỉ có xanh lam, không gồm màu đỏ hay xanh lá
Yellow có đỏ và xanh lá,
không gồm màu xanh lam. Bạn có thể tạo ra các gam màu khác,
và bạn sẽ khám phá chúng trong
các bài tập sau đây, bắt đầu với màu đỏ trước nhé
Cho rằng ta có một hình chữ nhật vẽ bằng màu đỏ
Bạn đặt color bằng
Color.RED, và khi bạn vẽ nó sẽ hiện ra màu đỏ
Ngoài ra, bạn có thể gọi method fill, và sau đấy phần bên trong
sẽ được vẽ bằng màu đỏ.
Giờ bạn đã biết tất cả về thư viện đồ họa để tạo ra
những bức vẽ bắt mắt rồi.
Tiếp đó bạn làm các bài luyện tập mà Sarah giao nhé. Và
khi làm xong rồi, biết đâu bạn sẽ có hứng thú
để làm lại con tàu Udacity. Hoặc là
tạo ra bức vẽ vui vui nào đấy và chia sẻ với chúng tớ trên
nhóm thảo luận.