Skip to content
Snippets Groups Projects
Commit 50dbffd4 authored by Gabriel Silva Pires's avatar Gabriel Silva Pires
Browse files
parents a281f91d 221cfd55
No related branches found
No related tags found
No related merge requests found
Pipeline #182684 passed
......@@ -171,6 +171,7 @@ function check_if_assets_loaded() {
if (flag_done && !flag_fail && !flag_asst_load) {
flag_asst_load = true;
redraw_canvas();
window.alert('Try to get the Komataeibacter colony to produce as much cellulose as possible!');
}
}
......@@ -350,6 +351,15 @@ function draw_total_production(x, y, w, h, prod) {
// ctxt_canv.fillStyle = 'lightgrey';
ctxt_canv.fillStyle = ctxt_canv.createPattern(imag_ptrn, 'repeat');
ctxt_canv.fill();
ctxt_canv.save();
ctxt_canv.translate(x, y + h);
ctxt_canv.rotate(-.5 * Math.PI);
ctxt_canv.textAlign = 'left';
ctxt_canv.font = '40px serif';
ctxt_canv.fillStyle = 'black';
ctxt_canv.fillText('TOTAL CELLULOSE', 0, 0);
ctxt_canv.restore();
}
function draw_colony(nb, prod) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment