CameraClsColour
CameraClsColour CameraIndex, RGBColour
 
Parameters:

    CameraIndex = The Index Identifier of the Camera that you wish to read from
    RGBColour = The RGB colour value for this cameras auto cls
Returns: NONE
 

      CameraClsColour sets the CLS colour of a camera. When a camera is drawn and auto CLS is enabled (via CameraCLS), the drawing process will clear the cameras view port first to whatever colour you select.

      To enable / disable auto CLS, see the CameraCls command.



FACTS:


      * The CLS colour is an RGB colour value



Mini Tutorial:


      This example creates a camera, adjusts it size to a custom view port, activates the Auto CLS an sets it's CLS colour to a bright green colour, before drawing a circle to the scene buffer and finally displaying the camera.


  
  
; create a camera 1.  Which will attach itself to
; the screen
  CreateCamera 1
  
; Set the Cameras View port area to 100x,100x to 200,200
  CameraViewPort 1,100,100,200,200
  
; Activate the camera Auto CLS to screen the cameras viewport
; before it starts drawing
  CameraCls 1,on
  
; Set the Cameras Auto CLS colour to Bright green colour
  CameraClsColour 1,RGB(0,255,0)
  
; Direct All gfx to the Scene buffer so the camera
; has something to view.
  CaptureToScene
  
; draw a white circle the Scene
  Circle 50,50,40,1
  
; Draw the camera and whatever it can see
  DrawCamera 1
  
; Show the user the screen.
  Sync
  
; wait for a key press, before ending
  WaitKey
  



This example would output.

  
  no output
  


 
Related Info: CameraCls | cls | DrawAllCameras | DrawCamera | GetCameraCls | GetCameraClsColour :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com