Closed agrignard closed 4 years ago
I have the feeling that the number for infection risk is updating it self in a weird way. I would assume that it will change continously, now it change by bi steps as if the graphics do not update it self
this is how it is written
else { draw "Initial infected new comers:" + initial_nb_infected + " people" color: #blue at: {infectiousLegendPos.x,infectiousLegendPos.y,0.01} perspective: true font:font("Helvetica", 40 , #plain); draw circle(peopleSize*2) color:#blue at:{infectiousLegendPos.x-5#px,infectiousLegendPos.y-5#px,0.01} perspective: true; draw "Low Risk of Infection:" + (ViralPeople count (each.infection_risk < Low_Risk_of_Infection_threshold)) + " people"color: #green at: {infectiousLegendPos.x,infectiousLegendPos.y+40#px,0.01} perspective: true font:font("Helvetica", 40 , #plain); draw circle(peopleSize*2) color:#green at:{infectiousLegendPos.x-5#px,infectiousLegendPos.y+40#px-5#px,0.01} perspective: true; draw "Medium Risk of Infection:" + (ViralPeople count (each.infection_risk >= Low_Risk_of_Infection_threshold and each.infection_risk < Medium_Risk_of_Infection_threshold)) + " people"color: #orange at: {infectiousLegendPos.x,infectiousLegendPos.y+80#px,0.01} perspective: true font:font("Helvetica", 40 , #plain); draw circle(peopleSize*2) color:#orange at:{infectiousLegendPos.x-5#px,infectiousLegendPos.y+80#px-5#px,0.01} perspective: true; draw "High Risk of Infection:" + (ViralPeople count (each.infection_risk >= Medium_Risk_of_Infection_threshold)) + " people" color: #red at: {infectiousLegendPos.x,infectiousLegendPos.y+120#px,0.01} perspective: true font:font("Helvetica", 40 , #plain); draw circle(peopleSize*2) color:#red at:{infectiousLegendPos.x-5#px,infectiousLegendPos.y+120#px-5#px,0.01} perspective: true font:font("Helvetica", 20 , #plain); }
I have the feeling that the number for infection risk is updating it self in a weird way. I would assume that it will change continously, now it change by bi steps as if the graphics do not update it self
this is how it is written