How to resolve the algorithm Draw a pixel step by step in the FutureBasic programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Draw a pixel step by step in the FutureBasic programming language

Table of Contents

Problem Statement

Create a window and draw a pixel in it, subject to the following:

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Draw a pixel step by step in the FutureBasic programming language

Source code in the futurebasic programming language

void local fn BuildWindow
  CGRect r = fn CGRectMake( 0, 0, 320, 240 )
  window 1, @"Single Pixel", r, NSWindowStyleMaskTitled + NSWindowStyleMaskClosable
  oval fill fn CGRectMake( 100-0.5, 100-0.5, 1, 1 ), fn ColorRed
end fn

void local fn DoDialog( ev as long, tag as long, wnd as long )
  select ( ev )
    case _windowWillClose : end
  end select
end fn

on dialog fn DoDialog

fn BuildWindow

HandleEvents

  

You may also check:How to resolve the algorithm Hello world/Line printer step by step in the Locomotive Basic programming language
You may also check:How to resolve the algorithm Ordered words step by step in the Transd programming language
You may also check:How to resolve the algorithm Events step by step in the Wren programming language
You may also check:How to resolve the algorithm Pythagorean triples step by step in the Julia programming language
You may also check:How to resolve the algorithm Galton box animation step by step in the BBC BASIC programming language