File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3333                                                    bitmap = displayio .Bitmap ,
3434                                                    palette = displayio .Palette )
3535# Or just use solid color 
36- except  (OSError , TypeError ):
36+ except  (OSError , TypeError ,  AttributeError ):
3737    BACKGROUND  =  BACKGROUND  if  isinstance (BACKGROUND , int ) else  0x000000 
3838    bg_bitmap  =  displayio .Bitmap (display .width , display .height , 1 )
3939    bg_palette  =  displayio .Palette (1 )
5252            break 
5353NUM_SPRITES  =  flake_bitmap .width  //  FLAKE_WIDTH  *  flake_bitmap .height  //  FLAKE_HEIGHT 
5454flake_pos  =  [0.0 ] *  NUM_FLAKES 
55- flakes  =  displayio .Group (max_size = NUM_FLAKES )
55+ flakes  =  displayio .Group ()
5656for  _  in  range (NUM_FLAKES ):
5757    flakes .append (displayio .TileGrid (flake_bitmap , pixel_shader = flake_palette ,
5858                                     width  =  1 ,
Original file line number Diff line number Diff line change 2626                                                    bitmap = displayio .Bitmap ,
2727                                                    palette = displayio .Palette )
2828# Or just use solid color 
29- except  (OSError , TypeError ):
29+ except  (OSError , TypeError ,  AttributeError ):
3030    BACKGROUND  =  BACKGROUND  if  isinstance (BACKGROUND , int ) else  0x000000 
3131    bg_bitmap  =  displayio .Bitmap (display .width , display .height , 1 )
3232    bg_palette  =  displayio .Palette (1 )
5050for  i , value  in  enumerate (FLAKES ):
5151    flake_sheet [i ] =  value 
5252flake_pos  =  [0.0 ] *  NUM_FLAKES 
53- flakes  =  displayio .Group (max_size = NUM_FLAKES )
53+ flakes  =  displayio .Group ()
5454for  _  in  range (NUM_FLAKES ):
5555    flakes .append (displayio .TileGrid (flake_sheet , pixel_shader = palette ,
5656                                     width  =  1 ,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments