From 3e898b8b42b8e930e7e33fcfd89d9a4fafcbd18a Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 08 Mar 2011 03:55:04 +0000 Subject: force scaling to predefined constants to fix pixel alignment problems (#2442) --- (limited to 'TurtleArt/taconstants.py') diff --git a/TurtleArt/taconstants.py b/TurtleArt/taconstants.py index adf5a15..54c2d27 100644 --- a/TurtleArt/taconstants.py +++ b/TurtleArt/taconstants.py @@ -55,7 +55,7 @@ SELECTOR_WIDTH = 55 ICON_SIZE = 55 GRADIENT_COLOR = "#FFFFFF" STANDARD_STROKE_WIDTH = 1.0 -BLOCK_SCALE = 2.0 +BLOCK_SCALE = [0.5, 1.0, 1.5, 2.0, 3.0, 4.0, 6.0, 8.0] PALETTE_SCALE = 1.5 DEFAULT_TURTLE = 'Yertle' DEFAULT_TURTLE_COLORS = ['#008000', '#00A000'] @@ -74,6 +74,12 @@ XO1 = 'xo1' XO15 = 'xo1.5' UNKNOWN = 'unknown' +CONSTANTS = {'leftpos': None, 'toppos': None, 'rightpos': None, + 'bottompos': None, 'width': None, 'height': None, 'red': 0, + 'orange': 10, 'yellow': 20, 'green': 40, 'cyan': 50, 'blue': 70, + 'purple': 90, 'titlex': None, 'titley': None, 'leftx': None, + 'topy': None, 'rightx': None, 'bottomy': None} + # # Blocks that are expandable # @@ -103,14 +109,6 @@ BLOCKS_WITH_SKIN = ['journal', 'audio', 'description', 'nop', 'userdefined', PYTHON_SKIN = ['nop', 'userdefined', 'userdefined2args', 'userdefined3args'] -# -# These blocks hold constants -# -CONSTANTS = {'leftpos': None, 'toppos': None, 'rightpos': None, - 'bottompos': None, 'width': None, 'height': None, 'red': 0, - 'orange': 10, 'yellow': 20, 'green': 40, 'cyan': 50, 'blue': 70, - 'purple': 90, 'titlex': None, 'titley': None, 'leftx': None, - 'topy': None, 'rightx': None, 'bottomy': None} # # Blocks that can interchange strings and numbers for their arguments -- cgit v0.9.1