void draw_name2(int height)
{
//draws the second name
draw_H(800,275,height);
draw_A(830,275,height);
draw_N(860,275,height);
draw_N(890,275,height);
draw_A(920,275,height);
draw_H(950,275,height);
draw_P(1010,275,height);
draw_O(1040,275,height);
draw_R(1070,275,height);
draw_T(1100,275,height);
draw_E(1130,275,height);
draw_R(1160,275,height);
}
void terminal_message(){
//draws a prompt to open the terminal

draw_P(230,750,60);
draw_L(265,750,60);
draw_E(300,750,60);
draw_A(340,750,60);
draw_S(372,750,60);
draw_E(410,750,60);

draw_O(480,750,60);
draw_P(515,750,60);
draw_E(555,750,60);
draw_N(595,750,60);

draw_T(650,750,60);
draw_H(690,750,60);
draw_E(730,750,60);

draw_T(790,750,60);
draw_E(830,750,60);
draw_R(865,750,60);
draw_M(905,750,60);
draw_I(945,750,60);
draw_N(985,750,60);
draw_A(1025,750,60);
draw_L(1065,750,60);
gfx_flush();
}
void button_label(int height)
{
//draws free play button label
draw_F(305,605,height);
draw_R(340,605,height);
draw_E(375,605,height);
draw_E(410,605,height);
draw_P(465,605,height);
draw_L(500,605,height);
draw_A(535,605,height);
draw_Y(570,605,height);
}
void draw_name(int height)
{
//draws the first name
draw_S(50,275,height);
draw_P(80,275,height);
draw_E(110,275,height);
draw_N(140,275,height);
draw_C(170,275,height);
draw_E(200,275,height);
draw_R(230,275,height);
draw_K(290,275,height);
draw_I(320,275,height);
draw_N(350,275,height);
draw_G(380,275,height);
}
Esempio n. 5
0
  //----------------------------------------------------------------------
  // draws Sigma one element at a time using regular slice sampling
  // based on the separation strategy in Barnard, McCulloch, and Meng
  // (2000 statistica sinica).
  void SepStratSampler::stable_draw(){
    int dim = nrow(sumsq_);

    cand_ = mod_->Sigma();
    sd_ = sqrt(diag(cand_));
    R_ = var2cor(cand_);
    Rinv_ = R_.inv();

    for(int i = 0; i < dim; ++i){
      draw_sigsq(i);
    }

    for(int i = 0; i < dim; ++i){
      for(int j = 0; j < i; ++j){
        draw_R(i,j);}}
    fill_sigma();
    mod_->set_Sigma(cand_);
  }