About 16,300,000 results
Open links in new tab
  1. Draw a triangle in C++ graphics - GeeksforGeeks

    Sep 2, 2020 · Approach: The idea is to create a triangle with the help of several lines. We will draw a line in graphics by passing 4 numbers to line() function as: line(a, b, c, d) The above …

  2. Getting Started with Geometry Problems in Programming

    Mar 1, 2024 · Geometry is a key aspect of programming, helping us create shapes, graphics, and solve spatial problems. From points and lines to circles, triangles, rectangles, squares, and …

  3. For loop in CS Circles section 7C coding exercise: One Triangle

    First, instead of a square, make it draw a triangle shaped like this: . Second, instead of always having 5 lines, it should take the desired size as input from input(). For example, if the input is …

  4. Drawing a Custom Triangle - CodeHS

    This program will draw a triangle with a static base value. The third point in the triangle will be given by the user. The triangle will be drawn using these points and the base and height will …

  5. Draw a triangle with centroid using OpenCV - GeeksforGeeks

    May 30, 2024 · Draw three lines which are passing through the given points using the inbuilt line function of the OpenCV. It will create a triangle on the black window. Find the centroid of the …

  6. Mastering Computer Graphics with OpenGL: Draw Your First Triangle

    Nov 16, 2024 · This program combines pixels, coordinate systems, and rendering concepts to draw a triangle — a fundamental shape in computer graphics. From here, you can scale to …

  7. How to make a triangle using for loop javascript - Stack Overflow

    Oct 28, 2016 · This code is for a triangle of 7 lines. let size = 8; let y = "#"; for (let x = 0; x < size; x++) { console.log(y); y += "#"; } // Second method for (let i = 1; i < size;i++) { let me …

  8. Draw a triangle (with a loop) - CS Unplugged

    Write a program that draws a triangle (with equal sides), starting from point x:0, y:0, with its sides equal to 100 steps. You must use a repeat loop for this challenge. Testing examples:

  9. c - Drawing a triangle using a for loop - Stack Overflow

    Nov 7, 2014 · Using only the characters * and +you need to form rectangular image with width m and height n (m < n) that depicts a right isosceles triangle with character + inside the rectangle …

  10. How to code triangles using SVG coding with ... - YouTube

    Mar 6, 2024 · Link to channel: https://www.youtube.com/channel/UCYWMvI3JjLBf9tjQkeJaFiAThis video series will teach …

  11. Some results have been removed
Refresh