Skip to content

Commit c8c2f1b

Browse files
wesmelojoaostein
authored andcommitted
Tradução Capítulo 19 até linha 31 (#422)
1 parent fcbced5 commit c8c2f1b

File tree

1 file changed

+13
-31
lines changed

1 file changed

+13
-31
lines changed

19_paint.md

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,34 @@
11
{{meta {load_files: ["code/chapter/19_paint.js"], zip: "html include=[\"css/paint.css\"]"}}}
22

3-
# Project: A Pixel Art Editor
3+
# Projeto: Um Editor de Pixel Art
44

55
{{quote {author: "Joan Miro", chapter: true}
66

7-
I look at the many colors before me. I look at my blank canvas. Then,
8-
I try to apply colors like words that shape poems, like notes that
9-
shape music.
7+
8+
Eu olho para as muitas cores diante de mim. Eu olho para minha tela em branco. Então, eu tento usar as cores como palavras que moldam de poemas, como as notas que formam a música.
109

1110
quote}}
1211

1312
{{index "Miro, Joan", "drawing program example", "project chapter"}}
1413

15-
{{figure {url: "img/chapter_picture_19.jpg", alt: "Picture of a tiled mosaic", chapter: "framed"}}}
14+
O material do capítulo anterior te dá todo os elementos que você precisa para construir uma ((aplicação web)) simples. Nesse capítulo, nós vamos fazer exatamente isso.
1615

17-
The material from the previous chapters gives you all the elements you
18-
need to build a basic ((web application)). In this chapter, we will do
19-
just that.
16+
Nossa ((aplicação)) será um programa de ((desenho)) em ((pixel)), onde você pode modificar uma imagem pixel a pixel manipulando uma visão ampliada, uma grid de quadrados coloridos. Você pode usá-la para abrir ((aquivo))s de imagem, rabiscar sobre com o mouse e salvá-la. É assim como vai ficar:
2017

21-
Our ((application)) will be a ((pixel)) ((drawing)) program, where you
22-
can modify a picture pixel by pixel by manipulating a zoomed-in view of it, shown as a grid of colored squares. You can use the program to open image ((file))s,
23-
scribble on them with your mouse or other pointer device, and save
24-
them. This is what it will look like:
2518

26-
{{figure {url: "img/pixel_editor.png", alt: "The pixel editor interface, with colored pixels at the top and a number of controls below that", width: "8cm"}}}
19+
{{figure {url: "img/pixel_editor.png", alt: "A interface do editor de pixels, com pixels coloridos na parte superior e controles na parte inferior", width: "8cm"}}}
2720

28-
Painting on a computer is great. You don't need to worry about
29-
materials, ((skill)), or talent. You just start smearing.
21+
Pintar pelo computador é ótimo. Você não tem que se preocupar com materiais, ((habilidades)), ou talento. Você apenas precisa começar a manchar.
3022

31-
## Components
23+
## Componentes
3224

3325
{{index drawing, "select (HTML tag)", "canvas (HTML tag)", component}}
3426

35-
The interface for the application shows a big `<canvas>` element on
36-
top, with a number of form ((field))s below it. The user draws on the
37-
((picture)) by selecting a tool from a `<select>` field and then
38-
clicking, ((touch))ing, or ((dragging)) across the canvas. There are
39-
((tool))s for drawing single pixels or rectangles, for filling an
40-
area, and for picking a ((color)) from the picture.
41-
42-
We will structure the editor interface as a number of
43-
_((component))s_, objects that are responsible for a piece of the
44-
((DOM)) and that may contain other components inside them.
45-
46-
The ((state)) of the application consists of the current picture, the
47-
selected tool, and the selected color. We'll set things up so that the
48-
state lives in a single value, and the interface components always
49-
base the way they look on the current state.
27+
A interface para a aplicação mostra um grande elemento `<canvas>` na parte superior, com uma série de ((campos)) do formulário abaixo dele. O usuário desenha na ((imagem)) ao selecionar uma ferramenta de um campo `<select>` e em seguida ((clicando)), ((tocando)), ou ((arrastando)) em toda a tela. Existem ((ferramenta))s para desenhar um pixel unico ou retângulos, para preencher uma área, e para escolher uma ((cor)) da imagem.
28+
29+
Nós vamos estruturar a interface do editor com _((componente))s_, objetos que são responsáveis por uma parte do ((DOM)), e que pode conter outros componentes dentro deles.
30+
31+
O ((estado)) da aplicação consiste na imagem atual, a ferramenta selecionada, e a cor selecionada. Vamos configurar as coisas para que o estado viva em um único valor, e os componentes da interface sempre baseiem-se na maneira como eles se parecem no estado atual.
5032

5133
To see why this is important, let's consider the
5234
alternative—distributing pieces of state throughout the interface. Up

0 commit comments

Comments
 (0)