diff options
author | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-11-28 00:35:49 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-11-28 00:35:49 (GMT) |
commit | 1fc9bf4a0e53e0238ac037162ae91ba5eecf5326 (patch) | |
tree | 5bf7694a58addf7a54cc586805ee0fc7dc3b987b /globos.py | |
parent | a76be87f0f04e0227fd80698553e8fd14db1b0d1 (diff) |
Change the display of the circle and square controls in the globes.
Now trace a line white and a dashed line in black, to see them if
the image have a white background.
Diffstat (limited to 'globos.py')
-rw-r--r-- | globos.py | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -120,21 +120,33 @@ class Globo: context.stroke() ancho_marcador = 15 + context.restore() + # cuadrado esquina superior izq + context.save() + context.set_line_width(ANCHO_LINEAS_CONTROLES) context.set_source_rgb(1, 1, 1) context.rectangle(self.x - self.ancho - (ancho_marcador / 2), self.y - self.alto - (ancho_marcador / 2), ancho_marcador, ancho_marcador) + context.stroke_preserve() + context.set_source_rgb(0, 0, 0) + context.set_dash([2]) context.stroke() + context.restore() # circulo en la punta del globo + context.save() + context.set_line_width(ANCHO_LINEAS_CONTROLES) context.set_source_rgb(1, 1, 1) x_circle, y_circle = self.get_circle_position() context.arc(x_circle, y_circle, (ancho_marcador / 2), 0, x * math.pi) - + context.stroke_preserve() + context.set_source_rgb(0, 0, 0) + context.set_dash([2]) context.stroke() context.restore() |