%% Paint the static red flag texture
flag_size = [150 100]; % Change as you see fit
flag_dimension_in_pixel = flag_size; %[600 400];
figure_leftbottom_pos = [100 100];
bkg_color = [1 0 0];
star_color = [1 1 0];
flag_horiz_units_num = 30;
flag_verti_units_num = 20;
star_vertices_x = zeros(10, 5);
star_vertices_y = zeros(10, 5);
stars(5).center_pos = [];
stars(1).center_pos = [5 15];
stars(1).radius = 3;
stars(1).orientation = 0;
stars(2).center_pos = [10 18];
stars(2).radius = 1;
stars(2).orientation = 0;
stars(3).center_pos = [12 16];
stars(3).radius = 1;
stars(3).orientation = 0;
stars(4).center_pos = [12 13];
stars(4).radius = 1;
stars(4).orientation = 0;
star