Commit 7662870d authored by Pascal Noisette's avatar Pascal Noisette

belles couleurs

texte sur les containers
Comme c'est joli.
parent 6880e0ef
......@@ -47,6 +47,10 @@ void Svg::init(const char *path){
<< "\t\t\t{\n"
<< "\t\t\t\tfill:none;stroke:green;stroke-width:1\n"
<< "\t\t\t}\n"
<< "\t\ttext\n"
<< "\t\t\t{\n"
<< "\t\t\t\tfill:black;font-size:8px;\n"
<< "\t\t\t}\n"
<< "\t</style>\n"
<< "\t<desc>Rectangles</desc>\n"
<< "<g>"
......
......@@ -119,7 +119,17 @@ inline void Svg::start_draw(){
}
inline void Svg::draw_container_text(const Element_pos x, const Element_pos y, const std::string value){
}
Element_pos xprime,yprime;
yprime = LEVEL*y;
xprime = LEVEL*x;
_thin_element_buffer << "<text x='" << xprime <<"' y='" << yprime << "'> ";
_thin_element_buffer << value;
_thin_element_buffer << "</text>";
}
inline void Svg::start_draw_containers(){
......@@ -295,7 +305,7 @@ inline void Svg::draw_state(const Element_pos start , const Element_pos end, con
if( debug_counter++<1000)
std::cout<<"s.draw_state("<<start<<","<<end<<","<<level<<","<< height<<","<<r<<","<<g<<","<< b <<");\n";
Svg::rectangle("state",w,h, x,y,r , g, b);
Svg::rectangle("state",w,h, x,y,r*255 , g*255, b*255);
}
inline void Svg::draw_event(const Element_pos time, const Element_pos height, const Element_pos container_height){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment