User Tools

Site Tools


notes:discrete:fall2023:projects:yol0

This is an old revision of the document!


yol0

let's gooooooo

edit/add pertinent sections as needed

scaling numbers

There are a few different functions in vircon32 that can help change the things you display to a better size. one of those being to scale the image on the x and y. This can be very helpful if the numbers or images you have are too big or small. To change the size of the image; you have to first set the drawing scale, you can think of this as the number you want to multiply the size of the image by. It takes two floats as inputs so you can change the size of the image to your preference. Then instead of using the draw_region_at(); function you would use the draw_region_zoomed_at(x,y); to draw your new bigger/smaller image on the screen.

  float scale = 3;
  set_drawing_scale(scale,scale);
  //select_texture();
  //select_region();
  draw_region_zoomed_at(x,y);

Custom Texture File

This is the png file that will contain the numbers you will be using to print to the screen. The numbers can be arranged depending on functionality you use to print the numbers to the screen, as well as how you would like to define the regions. One way to go about this is to have the numbers arranged in symmetrical tiles and define them using the “define_region_matrix” function. With this you can assign an int value to each tile/number and call that value to print your texture region to the screen.

notes/discrete/fall2023/projects/yol0.1697424567.txt.gz · Last modified: 2023/10/16 02:49 by jwieland