Examples JS4Scratch Reference Manual: Table Of ContentsJS4eBot ReferenceScratchLinkeBotsJS4eBot IntroductionSyntax OverviewJS ConsoleReserved WordsSupported GamePadsLEDColorColor RGBColor WordColor HEXShiftFlashOffPercentMatrixMatrix ScrollMatrix PointMatrix LineMatrix RectangleMatrix MovePlay AnimationShow MatrixMatrix ClearMatrix BrightnessWheelsDrive Direction WordDrive Direction DegreesDrive RadiusDrive PowerStopStop on EventsStop on Black/White (BW)Stop on UltrasonicStop on ColourCraneCrane Joint PositionCrane Preset PositionSensorsAll Sensor DataLine Sensors AnalogLine Sensors DigitalUltrasonic Distance AnalogUltrasonic Sensors DigitalVoltage and CurrentColour ValuesColour GuessRFIDCrane ProximityWheel DistanceEventsPageEvent ButtonseBot EventsGamePad EventsXbox & T3Retro GamePadScratchLink NunChuckScratchLink Classic ControllerOperatorsAddSubtractMultiplyDividePick RandomGreater ThanLess ThanEqual ToANDORNOTRoundControlWaitFor LoopRepeat UntilRepeatForeverIf ThenIf Then ElseWait UntilStop AllFunctionsNon-Returning FunctionsReturning FunctionsArraysVariablesMake a VariableSet VariableChange VariableVariable ExampleExamplesObstacle AvoidanceObsticle Avoidance (Beginner)Obstacle Avoidance (Core)Obstacle Avoidance (Advanced) Obstacle Avoidance Obsticle Avoidance (Beginner) Load example in Code Editor Obstacle Avoidance (Core) Load example in Code Editor Obstacle Avoidance (Advanced) Load example in Code Editor