[gcompris/gcomprisbraille: 18/18] Dicey-Dicey|Twin Concept
- From: Srishti Sethi <srishs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprisbraille: 18/18] Dicey-Dicey|Twin Concept
- Date: Sun, 12 Jun 2011 23:49:22 +0000 (UTC)
commit 56f80077465614a00465ef9ab64a5150f97c5fd5
Author: Srishti Sethi <srishakatux gmail com>
Date: Mon Jun 13 05:18:40 2011 +0530
Dicey-Dicey|Twin Concept
src/dicey_dicey-activity/dicey_dicey.py | 475 ++++++++++++++++++++++
src/dicey_dicey-activity/resources/dice_area.svg | 12 +-
src/dicey_dicey-activity/resources/divide.svg | 9 +-
src/dicey_dicey-activity/resources/minus.svg | 16 +-
src/dicey_dicey-activity/resources/multiply.svg | 16 +-
src/dicey_dicey-activity/resources/plus.svg | 16 +-
6 files changed, 513 insertions(+), 31 deletions(-)
---
diff --git a/src/dicey_dicey-activity/dicey_dicey.py b/src/dicey_dicey-activity/dicey_dicey.py
new file mode 100755
index 0000000..9b1c564
--- /dev/null
+++ b/src/dicey_dicey-activity/dicey_dicey.py
@@ -0,0 +1,475 @@
+# gcompris - dicey_dicey.py
+#
+# Copyright (C) 2003, 2008 Bruno Coudoin
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+# dicey_dicey activity.
+import gtk
+import gtk.gdk
+import gcompris
+import gcompris.utils
+import gcompris.skin
+import gcompris.score
+import goocanvas
+import pango
+import random
+import gcompris.bonus
+from BrailleChar import *
+from gcompris import gcompris_gettext as _
+
+
+on = 0XFFFFFFFFL
+off = 0X00000000L
+circle_stroke = "black"
+circle_fill = "#660066"
+symbol_operators = {1 : "plus.svg",2 : "minus.svg",
+ 3 : "multiply.svg" ,4 : "divide.svg"}
+
+sign = ['+','_','X','/']
+random.shuffle(sign)
+x1 = 100
+x2 = 300
+x3 = 340
+x4 = 120
+x5 = 360
+x6 = 400
+class Gcompris_dicey_dicey:
+ """Empty gcompris python class"""
+
+ def __init__(self, gcomprisBoard):
+ # Save the gcomprisBoard, it defines everything we need
+ # to know from the core
+ self.gcomprisBoard = gcomprisBoard
+
+ self.gcomprisBoard.level=1
+ self.gcomprisBoard.sublevel=1
+ self.gcomprisBoard.number_of_sublevel=2
+ self.gcomprisBoard.maxlevel = 6
+
+ self.counter = 0
+ # Needed to get key_press
+ gcomprisBoard.disable_im_context = True
+
+ def start(self):
+
+ # Set the buttons we want in the bar
+ gcompris.bar_set(gcompris.BAR_LEVEL)
+ gcompris.bar_location(300,-1,0.8)
+ # Set a background image
+ gcompris.set_default_background(self.gcomprisBoard.canvas.get_root_item())
+
+ # Create our rootitem. We put each canvas item in it so at the end we
+ # only have to kill it. The canvas deletes all the items it contains
+ # automaticaly.
+ self.rootitem = goocanvas.Group(parent =
+ self.gcomprisBoard.canvas.get_root_item())
+
+ gcompris.score.start(gcompris.score.STYLE_NOTE, 70, 470,
+ self.gcomprisBoard.number_of_sublevel)
+ gcompris.bar_set_level(self.gcomprisBoard)
+ gcompris.score.set(self.gcomprisBoard.sublevel)
+
+ self.display_function(self.gcomprisBoard.level)
+
+ def display_function(self,level):
+ if(level == 1 or level == 4):
+ """Taking two random numbers to be displayed on the dice"""
+ plus_arr_a = [0,1,2]
+ plus_arr_b = [0,1,2]
+ minus_arr_a = [2]
+ minus_arr_b = [0,1,2]
+ mult_arr_a = [0,1,2]
+ mult_arr_b = [0,1,2]
+ div_arr_a = [0,1,2]
+ div_arr_b = [1,2]
+ self.dicey_dicey()
+ if(level == 1):
+ self.dicey_dicey1()
+ elif(level == 4):
+ self.dicey_dicey1()
+ self.dicey_dicey4()
+ self.calculate(plus_arr_a,plus_arr_b,minus_arr_a,minus_arr_b,
+ mult_arr_a,mult_arr_b,div_arr_a,div_arr_b,level)
+
+ if(level == 2 or level == 5):
+ plus_arr_a = [3,4,5]
+ plus_arr_b = [3,4]
+ minus_arr_a = [5]
+ minus_arr_b = [3,4,5]
+ mult_arr_a = [3,4]
+ mult_arr_b = [1,2]
+ div_arr_a = [2,4,6]
+ div_arr_b = [2]
+ self.dicey_dicey()
+ if(level == 2):
+ self.dicey_dicey1()
+ elif(level == 5):
+ self.dicey_dicey1()
+ self.dicey_dicey4()
+ self.calculate(plus_arr_a,plus_arr_b,minus_arr_a,minus_arr_b,
+ mult_arr_a,mult_arr_b,div_arr_a,div_arr_b,level)
+
+ if(level == 3 or level == 6):
+ self.dicey_dicey()
+ plus_arr_a = [6,7,8,9]
+ plus_arr_b = [6,7,8,9]
+ minus_arr_a = [9]
+ minus_arr_b = [6,7,8,9]
+ mult_arr_a = [6,7,8,9]
+ mult_arr_b = [6,7,8,9]
+ div_arr_a = [3,6,9]
+ div_arr_b = [3]
+ self.dicey_dicey()
+ if((self.random_sign == '+') or (self.random_sign == 'X')):
+ if(level == 3):
+ self.dicey_dicey2()
+ elif(level == 6):
+ self.dicey_dicey2()
+ self.dicey_dicey4()
+ else :
+ if(level == 3):
+ self.dicey_dicey1()
+ elif(level == 6):
+ self.dicey_dicey1()
+ self.dicey_dicey4()
+
+ self.calculate(plus_arr_a,plus_arr_b,minus_arr_a,minus_arr_b,
+ mult_arr_a,mult_arr_b,div_arr_a,div_arr_b,level)
+
+ if(level == 1 or level == 2 or level == 3):
+ gcompris.set_background(self.gcomprisBoard.canvas.get_root_item(),
+ "dice.svg")
+ ok = goocanvas.Svg(parent = self.rootitem,
+ svg_handle = gcompris.skin.svg_get(),
+ svg_id = "#OK",
+ tooltip = "Click to confirm your selection of dots"
+ )
+ ok.translate(40,-30)
+ ok.connect("button_press_event", self.ok_event,level)
+ gcompris.utils.item_focus_init(ok, None)
+
+
+ def calculate(self,plus_arr_a,plus_arr_b,minus_arr_a,minus_arr_b,
+ mult_arr_a,mult_arr_b,div_arr_a,div_arr_b,level):
+ if(self.random_sign == '+'):
+ i = random.choice(plus_arr_a)
+ j = random.choice(plus_arr_b)
+ self.result = i + j
+ elif(self.random_sign == '_'):
+ i = random.choice(minus_arr_a)
+ j = random.choice(minus_arr_b)
+ self.result = i - j
+ elif(self.random_sign == 'X'):
+ i = random.choice(mult_arr_a)
+ j = random.choice(mult_arr_b)
+ self.result = i * j
+ elif(self.random_sign == '/'):
+ i = random.choice(div_arr_a)
+ j = random.choice(div_arr_b)
+ self.result = i / j
+
+
+ if(level ==1 or level == 2):
+ goocanvas.Text(parent = self.rootitem,
+ x=280.0,
+ y=200.0,
+ text=self.random_sign,
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ self.braille_display(x4,x5,x6,i,j)
+ self.single_cell()
+ if(level == 4 or level == 5):
+ self.braille_display(x4,x5,x6,i,j)
+ goocanvas.Text(parent = self.rootitem,
+ x=280.0,
+ y=200.0,
+ text='?',
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ braille_cell = BrailleChar(self.rootitem,600,160,70,
+ self.result,on,off,circle_fill,circle_stroke,
+ False,False,False,None)
+ self.text_display()
+
+ if(level == 3):
+ if(self.random_sign == '+' or self.random_sign == 'X'):
+ self.braille_display(x1, x2, x3 ,i, j)
+ goocanvas.Text(parent = self.rootitem,
+ x=240.0,
+ y=200.0,
+ text=self.random_sign,
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ braille_cell1 = BrailleChar(self.rootitem,490,160,70,
+ '',on,off,circle_fill,circle_stroke,
+ False,True,False,callback = self.letter_change1)
+ braille_cell2 = BrailleChar(self.rootitem,630,160,70,
+ '',on,off,circle_fill,circle_stroke,
+ False,True,False,callback = self.letter_change2)
+ else :
+ self.braille_display(x4, x5, x6, i, j)
+ goocanvas.Text(parent = self.rootitem,
+ x=280.0,
+ y=200.0,
+ text=self.random_sign,
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ self.single_cell()
+
+ elif(level == 6):
+ if(self.random_sign == '+' or self.random_sign == 'X'):
+ goocanvas.Text(parent = self.rootitem,
+ x=240.0,
+ y=200.0,
+ text='?',
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ self.braille_display(x1, x2, x3, i, j)
+ self.two_cells()
+ self.text_display()
+
+ else :
+ goocanvas.Text(parent = self.rootitem,
+ x=280.0,
+ y=200.0,
+ text='?',
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ self.braille_display(x4, x5, x6, i, j)
+ self.result_display()
+ self.text_display()
+
+ def result_display(self):
+ braille_cell = BrailleChar(self.rootitem,600,160,70,
+ self.result,on,off,circle_fill,circle_stroke,
+ False,False,False,None)
+
+ def single_cell(self):
+ braille_cell = BrailleChar(self.rootitem,600,160,70,
+ '',on,off,circle_fill,circle_stroke,
+ False,True,False,callback = self.letter_change1)
+ def text_display(self):
+ goocanvas.Text(parent = self.rootitem, x=640.0,y=330.0,
+ text="%i" % self.result,anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ def two_cells(self):
+ self.a1 = self.result / 10
+ self.a2 = self.result % 10
+ braille_cell1 = BrailleChar(self.rootitem,490,160,70,
+ self.a1,on,off,circle_fill,circle_stroke,
+ False,False,False,callback = self.letter_change1)
+ braille_cell2 = BrailleChar(self.rootitem,630,160,70,
+ self.a2,on,off,circle_fill,circle_stroke,
+ False,False,False,callback = self.letter_change2)
+ def braille_display(self,x4,x5,x6,i,j):
+ BrailleChar(self.rootitem,x4,160,70, i ,on ,off ,circle_fill,
+ circle_stroke,False,False ,False,None)
+ BrailleChar(self.rootitem,x5,160,70,j,on,off,circle_fill,
+ circle_stroke,False, False, False, None)
+ goocanvas.Text(parent = self.rootitem, x=140.0,y=330.0,
+ text="%i" % i,anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ goocanvas.Text(parent = self.rootitem,
+ x=x6,y=330.0,
+ text="%i" % j,
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+
+ def dicey_dicey(self):
+ #Display title of activity
+ goocanvas.Text(parent = self.rootitem,
+ x=400.0,
+ y=100.0,
+ text="Dicey - Dicey",
+ fill_color="black",
+ anchor = gtk.ANCHOR_CENTER,
+ alignment = pango.ALIGN_CENTER,
+ font = 'SANS 20'
+ )
+
+ self.random_sign = sign[self.counter]
+
+ def dicey_dicey1(self):
+ for l in range(3):
+ item = goocanvas.Image(parent = self.rootitem,
+ pixbuf = gcompris.utils.load_pixmap("diceyo.svg"),
+ x = 80 *(3*l+1),
+ y = 150,
+ )
+
+ goocanvas.Text(parent = self.rootitem,
+ x=280.0,
+ y=230.0,
+ text="___",
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ goocanvas.Text(parent = self.rootitem,
+ x=520.0,y=230.0,
+ text="=",
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ goocanvas.Text(parent = self.rootitem,
+ x=650.0,y=330.0,
+ text="___",
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+
+
+ def dicey_dicey2(self):
+ for l in range(3):
+ item1 = goocanvas.Image(parent = self.rootitem,
+ pixbuf = gcompris.utils.load_pixmap("diceyo.svg"),
+ x = 65 *(3*l+1),
+ y = 150,
+ )
+ item2 = goocanvas.Image(parent = self.rootitem,
+ pixbuf = gcompris.utils.load_pixmap("diceyo.svg"),
+ x = 600,
+ y = 150,
+ )
+ goocanvas.Text(parent = self.rootitem,
+ x=240.0,
+ y=230.0,
+ text="___",
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ goocanvas.Text(parent = self.rootitem,
+ x=430.0,y=230.0,
+ text="=",
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ goocanvas.Text(parent = self.rootitem,
+ x=620.0,y=330.0,
+ text="___",
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+
+ def dicey_dicey4(self):
+ gcompris.set_background(self.gcomprisBoard.canvas.get_root_item(),
+ "dice_area.svg")
+ goocanvas.Text(parent = self.rootitem,
+ x=300.0,
+ y=358.0,
+ text="Choose an operator to indicate the question mark",
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 12')
+
+ #Display operator images
+ self.c = []
+ for operator_number in range(4):
+ self.I = goocanvas.Image(parent = self.rootitem,
+ pixbuf = gcompris.utils.load_pixmap
+ (symbol_operators.get(operator_number+1)),
+ x= 150 * (operator_number + 1),
+ y=375
+ )
+ self.c.append(self.I)
+
+ gcompris.utils.item_focus_init(self.I,None)
+ for l in range(4):
+ self.c[l].connect("button_press_event",self.symbol_identify,l)
+
+ def symbol_identify(self,event,target,item,index):
+ if((index == 0 and self.random_sign == '+') or
+ (index == 1 and self.random_sign == '_') or
+ (index == 2 and self.random_sign == 'X')
+ or (index == 3 and self.random_sign == '/')):
+ gcompris.bonus.display(gcompris.bonus.WIN,gcompris.bonus.FLOWER)
+ else :
+ gcompris.bonus.display(gcompris.bonus.LOOSE,gcompris.bonus.FLOWER)
+
+ def ok_event(self,item,target,event,level):
+ if(level == 1 or level == 2 or level == 3):
+ if(level == 3 and (self.random_sign == '+' or
+ self.random_sign == 'X')):
+ if((self.a1 == self.correct_letter1) and
+ (self.a2 == self.correct_letter2)):
+ goocanvas.Text(parent = self.rootitem,
+ x = 630,
+ y = 330,
+ text = str(self.correct_letter1) + ''
+ +str(self.correct_letter2),
+ anchor = gtk.ANCHOR_CENTER,
+ font = 'SANS 25'
+ )
+ gcompris.bonus.display(gcompris.bonus.WIN,gcompris.bonus.FLOWER)
+ else :
+ gcompris.bonus.display(gcompris.bonus.LOOSE,gcompris.bonus.FLOWER)
+ else :
+ if(self.result == self.correct_letter1):
+ goocanvas.Text(parent = self.rootitem,
+ x=650.0,
+ y=330.0,
+ text=self.result,
+ anchor = gtk.ANCHOR_CENTER,
+ font='SANS 25')
+ gcompris.bonus.display(gcompris.bonus.WIN,gcompris.bonus.FLOWER)
+ else :
+ gcompris.bonus.display(gcompris.bonus.LOOSE,gcompris.bonus.FLOWER)
+
+ def letter_change1(self,letter):
+ self.correct_letter1 = letter
+
+ def letter_change2(self,letter):
+ self.correct_letter2 = letter
+
+ def end(self):
+ # Remove the root item removes all the others inside it
+ self.rootitem.remove()
+
+
+ def ok(self):
+ print("dicey_dicey ok.")
+
+
+ def repeat(self):
+ print("dicey_dicey repeat.")
+
+
+ def config(self):
+ print("dicey_dicey config.")
+
+
+ def key_press(self, keyval, commit_str, preedit_str):
+ utf8char = gtk.gdk.keyval_to_unicode(keyval)
+ strn = u'%c' % utf8char
+
+ print("Gcompris_dicey_dicey key press keyval=%i %s" % (keyval, strn))
+
+ def pause(self, pause):
+ if(pause == 0):
+ self.counter +=1
+ if (self.counter == 4):
+ self.increment_level()
+ self.end()
+ self.start()
+
+ def set_level(self, level):
+ gcompris.sound.play_ogg("sounds/receive.wav")
+ self.gcomprisBoard.level = level
+ self.gcomprisBoard.sublevel = 1
+ gcompris.bar_set_level(self.gcomprisBoard)
+ self.end()
+ self.start()
+
+ def increment_level(self):
+ self.counter = 0
+ gcompris.sound.play_ogg("sounds/bleep.wav")
+ self.gcomprisBoard.sublevel += 1
+ if(self.gcomprisBoard.sublevel>self.gcomprisBoard.number_of_sublevel):
+ self.gcomprisBoard.sublevel=1
+ self.gcomprisBoard.level += 1
+ if(self.gcomprisBoard.level > self.gcomprisBoard.maxlevel):
+ self.gcomprisBoard.level = 1
\ No newline at end of file
diff --git a/src/dicey_dicey-activity/resources/dice.svg b/src/dicey_dicey-activity/resources/dice.svg
old mode 100644
new mode 100755
diff --git a/src/dicey_dicey-activity/resources/dice_area.svg b/src/dicey_dicey-activity/resources/dice_area.svg
index 5125be9..d4f367a 100644
--- a/src/dicey_dicey-activity/resources/dice_area.svg
+++ b/src/dicey_dicey-activity/resources/dice_area.svg
@@ -18,7 +18,7 @@
width="800"
height="520"
xml:space="preserve"
- sodipodi:docname="mosaic_bg.svgz"
+ sodipodi:docname="dice_area.svg"
inkscape:version="0.48.0 r9654"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
version="1.0">
@@ -780,10 +780,10 @@
<rect
rx="37.207458"
- ry="21.218594"
+ ry="21.632643"
y="37.627502"
x="27.488482"
- height="305.15222"
+ height="311.10681"
width="744.88184"
id="rect1393"
style="fill:#e6e6e6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.875;marker:none;visibility:visible;display:inline;overflow:visible"
@@ -802,10 +802,10 @@
inkscape:export-xdpi="71.968178"
inkscape:export-ydpi="71.968178" /><rect
rx="18.583437"
- ry="15.09825"
- y="366.72971"
+ ry="14.29275"
+ y="372.6843"
x="23.80677"
- height="111.61236"
+ height="105.65778"
width="750.0116"
id="rect1409"
style="fill:#e6e6e6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.875;marker:none;visibility:visible;display:inline;overflow:visible"
diff --git a/src/dicey_dicey-activity/resources/dicey0.svg b/src/dicey_dicey-activity/resources/dicey0.svg
old mode 100644
new mode 100755
diff --git a/src/dicey_dicey-activity/resources/diceyo.svg b/src/dicey_dicey-activity/resources/diceyo.svg
old mode 100644
new mode 100755
diff --git a/src/dicey_dicey-activity/resources/divide.svg b/src/dicey_dicey-activity/resources/divide.svg
index 706e327..7b8686e 100644
--- a/src/dicey_dicey-activity/resources/divide.svg
+++ b/src/dicey_dicey-activity/resources/divide.svg
@@ -15,7 +15,7 @@
width="83.127678"
height="65.000015"
xml:space="preserve"
- sodipodi:docname="divide1.svg"
+ sodipodi:docname="divide.svg"
inkscape:version="0.48.0 r9654"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
sodipodi:modified="true"
@@ -201,6 +201,7 @@
+
<path
sodipodi:type="arc"
style="opacity:0.82743363;fill:#ffffff;fill-opacity:0.92920353"
@@ -258,7 +259,7 @@
y="30.204729"
rx="6.2754741"
ry="0.27451283" /><rect
- style="opacity:0.82743363;fill:#ffffff;fill-opacity:0.92920353"
+ style="opacity:0.82743363000000003;fill:#00ff00;fill-opacity:0.92920353000000000"
id="rect2423"
width="36.443943"
height="5.0327349"
@@ -285,7 +286,7 @@
d="m 45.121068,25.60585 a 3.9914792,3.2973089 0 1 1 -7.982958,0 3.9914792,3.2973089 0 1 1 7.982958,0 z"
transform="translate(0.8677144,18.395513)" /><path
sodipodi:type="arc"
- style="opacity:0.82743363;fill:#ffffff;fill-opacity:0.92920353"
+ style="opacity:0.82743363000000003;fill:#00ff00;fill-opacity:0.92920353000000000"
id="path2453"
sodipodi:cx="41.129589"
sodipodi:cy="25.60585"
@@ -294,7 +295,7 @@
d="m 45.121068,25.60585 a 3.9914792,3.2973089 0 1 1 -7.982958,0 3.9914792,3.2973089 0 1 1 7.982958,0 z"
transform="matrix(1,0,0,0.86842105,0.34708649,-1.0561447)" /><path
sodipodi:type="arc"
- style="opacity:0.82743363;fill:#ffffff;fill-opacity:0.92920353"
+ style="opacity:0.82743363000000003;fill:#00ff00;fill-opacity:0.92920353000000000"
id="path2455"
sodipodi:cx="41.129589"
sodipodi:cy="25.60585"
diff --git a/src/dicey_dicey-activity/resources/minus.svg b/src/dicey_dicey-activity/resources/minus.svg
index e40da48..51149ba 100644
--- a/src/dicey_dicey-activity/resources/minus.svg
+++ b/src/dicey_dicey-activity/resources/minus.svg
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Sodipodi ("http://www.sodipodi.com/") -->
+
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
@@ -14,15 +15,14 @@
width="83.127678"
height="65.000015"
xml:space="preserve"
- sodipodi:docbase="/home/franck/Dessins/Vectoriels/Boutons"
sodipodi:docname="minus.svg"
- inkscape:version="0.46"
+ inkscape:version="0.48.0 r9654"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
sodipodi:modified="true"
version="1.0"><metadata
id="metadata28"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs604"><linearGradient
id="linearGradient3294"><stop
id="stop3296"
@@ -150,11 +150,12 @@
inkscape:cx="55.252402"
inkscape:cy="36.53241"
inkscape:window-width="822"
- inkscape:window-height="722"
+ inkscape:window-height="700"
inkscape:window-x="197"
- inkscape:window-y="58"
+ inkscape:window-y="37"
inkscape:current-layer="svg602"
- showgrid="false" /><g
+ showgrid="false"
+ inkscape:window-maximized="0" /><g
id="g2422"
transform="translate(-0.5206277,0.3470856)"><g
transform="translate(0.6941703,-0.1735426)"
@@ -199,6 +200,7 @@
+
<path
sodipodi:type="arc"
style="opacity:0.82743363;fill:#ffffff;fill-opacity:0.92920353"
@@ -256,7 +258,7 @@
y="30.204729"
rx="7.2771926"
ry="0.27451283" /><rect
- style="opacity:0.82743363;fill:#ffffff;fill-opacity:0.92920353"
+ style="opacity:0.82743363000000003;fill:#ffff00;fill-opacity:0.92920353000000000"
id="rect2423"
width="42.865017"
height="5.0327349"
diff --git a/src/dicey_dicey-activity/resources/multiply.svg b/src/dicey_dicey-activity/resources/multiply.svg
index 8d18ad6..2719e08 100644
--- a/src/dicey_dicey-activity/resources/multiply.svg
+++ b/src/dicey_dicey-activity/resources/multiply.svg
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Sodipodi ("http://www.sodipodi.com/") -->
+
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
@@ -14,15 +15,14 @@
width="83.127678"
height="65.000015"
xml:space="preserve"
- sodipodi:docbase="/home/franck/Dessins/Vectoriels/Boutons"
sodipodi:docname="multiply.svg"
- inkscape:version="0.46"
+ inkscape:version="0.48.0 r9654"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
sodipodi:modified="true"
version="1.0"><metadata
id="metadata28"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs604"><linearGradient
id="linearGradient3294"><stop
id="stop3296"
@@ -150,11 +150,12 @@
inkscape:cx="50.906599"
inkscape:cy="40.607927"
inkscape:window-width="822"
- inkscape:window-height="729"
+ inkscape:window-height="700"
inkscape:window-x="197"
- inkscape:window-y="58"
+ inkscape:window-y="37"
inkscape:current-layer="svg602"
- showgrid="false" /><rect
+ showgrid="false"
+ inkscape:window-maximized="0" /><rect
style="opacity:0.82743363;fill:#ffffff;fill-opacity:0.92920353"
id="rect2637"
width="42.865017"
@@ -206,6 +207,7 @@
+
<path
sodipodi:type="arc"
style="opacity:0.82743363;fill:#ffffff;fill-opacity:0.92920353"
@@ -266,7 +268,7 @@
sodipodi:rx="2.2560534"
sodipodi:ry="1.6486545"
d="M 94.060077,51.203381 A 2.2560534,1.6486545 0 1 1 89.54797,51.203381 A 2.2560534,1.6486545 0 1 1 94.060077,51.203381 z" /><path
- style="font-size:72px;font-weight:bold;fill:#ffffff;stroke-width:1;font-family:Courier"
+ style="font-size:72px;font-weight:bold;fill:#0000ff;stroke-width:1;font-family:Courier"
d="M 35.737621,47.038059 L 43.268063,39.344914 L 51.244313,47.237312 C 52.829653,48.805989 54.901853,48.891742 56.424383,47.353038 C 57.897793,45.863969 58.167033,43.494611 56.581693,41.925934 L 48.605443,34.033529 L 56.463643,26.091838 C 58.035283,24.503499 58.075843,22.48072 56.540043,20.961065 C 55.053783,19.490431 52.742083,19.265942 51.170443,20.854282 L 43.312243,28.795973 L 35.674988,21.239008 C 34.089646,19.670332 31.689684,19.833125 30.167149,21.371836 C 28.693735,22.860903 28.752268,24.981717 30.337611,26.550394 L 37.975308,34.18962 L 30.444846,41.882786 C 28.873204,43.471125 28.783532,45.543524 30.31934,47.063186 C 31.805599,48.533821 34.165979,48.626399 35.737621,47.038059 z"
id="path3141"
sodipodi:nodetypes="ccccccccccccccccc" /></svg>
\ No newline at end of file
diff --git a/src/dicey_dicey-activity/resources/plus.svg b/src/dicey_dicey-activity/resources/plus.svg
index a42e50f..8771b4c 100644
--- a/src/dicey_dicey-activity/resources/plus.svg
+++ b/src/dicey_dicey-activity/resources/plus.svg
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Sodipodi ("http://www.sodipodi.com/") -->
+
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
@@ -14,15 +15,14 @@
width="83.127678"
height="65.000015"
xml:space="preserve"
- sodipodi:docbase="/home/franck/Dessins/Vectoriels/Boutons"
sodipodi:docname="plus.svg"
- inkscape:version="0.46"
+ inkscape:version="0.48.0 r9654"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
sodipodi:modified="true"
version="1.0"><metadata
id="metadata28"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs604"><linearGradient
id="linearGradient3294"><stop
id="stop3296"
@@ -150,11 +150,12 @@
inkscape:cx="34.127764"
inkscape:cy="29.590706"
inkscape:window-width="822"
- inkscape:window-height="729"
+ inkscape:window-height="700"
inkscape:window-x="197"
- inkscape:window-y="58"
+ inkscape:window-y="37"
inkscape:current-layer="svg602"
- showgrid="false" /><g
+ showgrid="false"
+ inkscape:window-maximized="0" /><g
id="g2422"
transform="translate(-0.5206277,0.3470856)"><g
transform="translate(0.6941703,-0.1735426)"
@@ -199,6 +200,7 @@
+
<path
sodipodi:type="arc"
style="opacity:0.82743363;fill:#ffffff;fill-opacity:0.92920353"
@@ -217,6 +219,6 @@
style="opacity:0.82743363;fill:#f9f9f9;fill-opacity:0.92920353"
d="M -7.6087756,3.6000642 C -7.4048546,3.4555552 -7.4505366,3.4318692 -7.8196496,3.4907272 C -8.0788016,3.5320512 -8.3130866,3.5049752 -8.3402766,3.4305582 C -8.3674676,3.3561422 -8.5037226,3.2698742 -8.6430616,3.2388532 C -8.7824006,3.2078302 -9.1626296,2.8700752 -9.4880146,2.4882812 C -9.8133986,2.1064882 -10.128915,1.7550642 -10.189156,1.7073402 C -10.249397,1.6596152 -10.321627,1.4643802 -10.349663,1.2734832 C -10.392196,0.98390317 -10.691319,-8.7188898 -10.722833,-10.831112 L -10.732543,-11.481896 L -16.242519,-11.506524 C -19.273007,-11.520067 -21.44012,-11.581064 -21.058326,-11.642071 C -20.490755,-11.732764 -20.650933,-11.771433 -21.936628,-11.854102 C -22.801485,-11.909712 -23.668641,-12.040591 -23.863633,-12.144949 C -24.467193,-12.467965 -25.646479,-13.517285 -25.533225,-13.630539 C -25.47415,-13.689615 -25.497401,-13.738024 -25.584894,-13.738115 C -25.672389,-13.738205 -25.769084,-14.319548 -25.799771,-15.029986 C -25.843087,-16.032719 -25.778031,-16.496976 -2
5.508983,-17.105207 C -25.158707,-17.897071 -24.199795,-18.975768 -23.738594,-19.096759 C -22.890866,-19.31915 -20.079744,-19.444398 -15.721892,-19.453935 L -10.732543,-19.464855 L -10.689157,-24.19389 C -10.665295,-26.794859 -10.645771,-29.716075 -10.645771,-30.685482 C -10.645771,-31.654889 -10.578834,-32.406528 -10.497023,-32.35579 C -10.415208,-32.305054 -10.404053,-32.439288 -10.472229,-32.65409 C -10.540405,-32.868892 -10.529248,-33.005444 -10.447435,-32.957536 C -10.365625,-32.90963 -10.027266,-33.245402 -9.6955266,-33.703696 C -9.3637876,-34.161991 -9.0514126,-34.527361 -9.0013556,-34.515628 C -8.7978566,-34.467926 -8.1295096,-34.769958 -8.1967156,-34.879253 C -8.3394906,-35.111444 -6.2892496,-35.069768 -5.4264016,-34.82294 C -4.7844626,-34.639308 -4.3584756,-34.365367 -3.8556056,-33.812811 C -3.4761106,-33.39582 -3.1956576,-32.964523 -3.2323756,-32.854369 C -3.2690936,-32.744218 -3.2340576,-32.654274 -3.1545156,-32.654498 C -3.0749746,-32.654722 -3.0199696,-32.01044
5 -3.0322806,-31.222772 C -3.0526996,-29.916541 -3.0435456,-29.874549 -2.9281816,-30.745122 C -2.8586136,-31.270088 -2.8094956,-28.946752 -2.8190266,-25.582154 L -2.8363546,-19.4647 L -0.31998764,-19.452896 C 1.0640144,-19.446402 4.1044214,-19.403907 6.4364714,-19.358461 L 10.676562,-19.275832 L 11.261401,-18.632789 C 12.17442,-17.628903 12.527215,-16.709191 12.570722,-15.219484 C 12.591736,-14.499819 12.545755,-13.911116 12.468535,-13.911249 C 12.391316,-13.911383 12.353895,-13.852922 12.385377,-13.781335 C 12.47156,-13.585369 10.86167,-12.09725 10.496923,-12.035723 C 9.1007974,-11.80021 6.1321084,-11.671009 1.9527314,-11.663866 L -2.9765686,-11.655439 L -2.8858836,-5.7983768 C -2.8360116,-2.5769928 -2.8537286,-0.37083283 -2.9252576,-0.89579883 C -3.0497606,-1.8095408 -3.0543396,-1.7928558 -3.0326036,-0.50492383 C -3.0201176,0.23502517 -3.0632066,0.84025317 -3.1283596,0.84003117 C -3.1935126,0.83981117 -3.2980336,1.0009802 -3.3606256,1.1981882 C -3.5055486,1.6548072 -4.9389
186,3.2780932 -5.0760776,3.1409332 C -5.1327836,3.0842262 -5.1791796,3.1335512 -5.1791796,3.2505412 C -5.1791796,3.3675292 -5.2572736,3.4149852 -5.3527226,3.3559942 C -5.4481706,3.2970042 -5.5262646,3.3329302 -5.5262646,3.4358312 C -5.5262646,3.5515442 -5.7016576,3.5788992 -5.9860056,3.5075332 C -6.3095576,3.4263292 -6.4093396,3.4510522 -6.3228496,3.5909992 C -6.2369196,3.7300302 -6.4510126,3.7890512 -7.0345196,3.7871942 C -7.6718986,3.7851652 -7.8075826,3.7409502 -7.6087756,3.6000642 z"
id="path2579" /><path
- style="opacity:0.82743363;fill:#ffffff;fill-opacity:0.92920353"
+ style="opacity:0.82743363000000003;fill:#ff0000;fill-opacity:0.92920353000000000"
d="M 40.375538,49.663465 C 39.594189,49.30864 38.905256,48.502687 38.597454,47.583367 C 38.483263,47.242302 38.399945,45.844855 38.399945,44.270579 C 38.399945,42.772994 38.348523,40.012306 38.285674,38.135714 L 38.171402,34.723726 L 32.480538,34.723726 C 26.308479,34.723726 25.441259,34.631639 24.381129,33.863686 C 23.438624,33.180938 23.039579,32.294611 23.049419,30.90579 C 23.058321,29.649222 23.44286,28.719445 24.283718,27.921387 C 25.316374,26.941293 25.527029,26.91431 32.146838,26.91431 L 38.226402,26.91431 L 38.230644,20.970477 C 38.233091,17.543983 38.310357,14.695898 38.413084,14.245702 C 38.82682,12.432518 40.32562,11.295479 42.301954,11.295479 C 44.123804,11.295479 45.399299,12.221472 45.859494,13.878203 C 45.961251,14.244536 46.034286,17.087476 46.03485,20.704195 L 46.035818,26.902377 L 52.600011,26.951728 L 59.164196,27.001082 L 59.879202,27.474436 C 61.208446,28.354439 61.852829,30.020584 61.576524,31.863113 C 61.48045,32.503761 61.289534,32.839517 60.644085
,33.502934 C 59.50338,34.675395 59.161718,34.723726 52.014496,34.723726 L 46.035818,34.723726 L 46.035818,40.547327 C 46.035818,44.395327 45.967418,46.642564 45.834191,47.171656 C 45.571224,48.215997 44.322965,49.53634 43.345908,49.803634 C 42.321063,50.084002 41.183361,50.030313 40.375538,49.663465 z"
id="path2805" /></svg>
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]