Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A new project I've been busy with :-)
#22
Thanks for the link, but I have already figured it out, like I said. Here's code proof:


Code:
Sub curses_InitColorTable()
    
    Dim As Integer y, x, c
  
    For y = 0 To 15
      
      For x = 0 To 7
      
          c += 1
          init_pair( c, x, y )
  
        Next
        
      Next
    
  End Sub

  Private Sub con_Blitter( conBlit As con_Core Ptr )
  
    
    Dim As Integer y, x
    
    With *( conBlit )
  
      Dim As chType charBlit
      
      move( 0, 0 )
  
      For y = 0 To .con_y - 1
        '' rows
          
        For x = 0 To .con_x - 1
          '' columns
          
  
          With .con_Data[y][x]
  
            charBlit = IIf( _
                            .char = 0, _
                            32    Or color_pair( ( .bcol Shl 3 ) + 1 ), _
                            .char Or color_pair( ( .bcol Shl 3 ) + 1 + ( .fcol And &b0111 ) ) Or IIf( .fcol And &b1000, a_bold, 0 ) _
                          )
            
            addch( charBlit )
            
                      
          End With
          
      
        Next
        
      Next
  
    End With
    
    refresh '' curses ...
  
  End Sub

One thing MS did right was making that formula for hitting all colors so easy Tongue
Reply


Messages In This Thread
A new project I've been busy with :-) - by Anonymous - 06-03-2006, 12:51 AM
A new project I've been busy with :-) - by Peter - 06-03-2006, 01:01 AM
A new project I've been busy with :-) - by Ryan - 06-03-2006, 02:41 AM
A new project I've been busy with :-) - by stylin - 06-03-2006, 03:03 AM
A new project I've been busy with :-) - by Mark0 - 06-03-2006, 01:49 PM
A new project I've been busy with :-) - by KiZ - 06-05-2006, 06:16 AM
A new project I've been busy with :-) - by DrV - 06-13-2006, 07:08 AM
A new project I've been busy with :-) - by Anonymous - 06-19-2006, 04:09 PM
A new project I've been busy with :-) - by DrV - 06-19-2006, 06:00 PM
A new project I've been busy with :-) - by Anonymous - 06-20-2006, 11:57 PM
A new project I've been busy with :-) - by Anonymous - 06-25-2006, 08:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)