darw statement

71 views
Skip to first unread message

Suhad Faisal

unread,
Oct 30, 2014, 11:00:28 AM10/30/14
to gama-p...@googlegroups.com
Hello 

I need to write attribute value in specific location (ID number of each tower )  as in the code below, but it seems wrong ,in spite of the draw statement works well except the highlighted one ,  any note please 


 create  towers from: vor   with:[location.x::int(read('pos_x')), 
                                        location.y::int(read('pos_y')),
                                        tower::int(read('id'))];
species  towers {   int    tower;
aspect base {   draw rectangle(10,1000)   at:location    color: rgb('blue') ; 
                       draw "ID " + tower   with_precision 2    at:location  color:rgb('green')  size:5;
                       draw shape     at:location       color:rgb (10,150,10) ; }



thanks in advance

cheers
Suhad





Arnaud Grignard

unread,
Oct 30, 2014, 11:04:53 AM10/30/14
to gama-platform
Maybe your string it is just under the rectangle you draw just before. So try to move it a bit by doing something like at:{location.x+offset,location.y+offset}  and maybe draw it bigger at least to see it (e.g size:50)

Arnaud

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

Suhad Faisal

unread,
Oct 30, 2014, 11:22:53 AM10/30/14
to gama-p...@googlegroups.com

many thanks dear Arnaud ... your comment work very well 

cheers
Suhad
Reply all
Reply to author
Forward
0 new messages