Draw Iron Man Face using 3 line of python code

Поделиться
HTML-код
  • Опубликовано: 11 ноя 2024

Комментарии • 186

  • @TechDecode
    @TechDecode  2 года назад +38

    👉 Source Code: bit.ly/Iron_Man_Python
    👉 Subscribe: rebrand.ly/FreeSubscription
    👉 How to Run Python in Visual Studio Code on Windows 10 : ruclips.net/video/AKVRkB0fot0/видео.html

  • @amukh1_dev274
    @amukh1_dev274 2 года назад +385

    That’s not 3 lines of code. You just imported a package.

  • @shaikayaanhussain3368
    @shaikayaanhussain3368 8 месяцев назад +2

    Code:
    from sketchpy import library as lib
    obj = lib.rdj()
    obj.draw()

  • @cagecrafter
    @cagecrafter 2 года назад +283

    wow you show us how to import a library congratulations!

    • @rishi6545
      @rishi6545 2 года назад +19

      Yes bro, i was thinking this too😂, congrats you got fool- non programmers

    • @CodeWithGani
      @CodeWithGani 2 года назад +3

      @@rishi6545 😂😂

    • @MatyHCR2
      @MatyHCR2 2 года назад +1

      Yes 😂😂

    • @Sugar97.
      @Sugar97. 2 года назад

      LOL

    • @radhikasharma8674
      @radhikasharma8674 2 года назад

      animated Box With CSS
      ruclips.net/video/gBmx3RmThDE/видео.html

  • @deadinside1237
    @deadinside1237 2 года назад +2

    What coding and language you use? and what you use?

    • @deadinside1237
      @deadinside1237 2 года назад +1

      @Gadin Op And what coding app?

    • @tunisiaa5074
      @tunisiaa5074 2 года назад

      @@deadinside1237 visual studio code

    • @MinhduyVu-lg4tm
      @MinhduyVu-lg4tm 10 часов назад

      @@tunisiaa5074 nah bro i don't can run it

  • @Codewithnidhi4990
    @Codewithnidhi4990 2 месяца назад

    Which library is used in this code

  • @Shivhari_calisthenics
    @Shivhari_calisthenics 2 года назад +49

    from sketchpy import library as lib

    obj = lib.gojo()
    obj = lib.apj()
    obj = lib.flag()
    obj = lib.ironman_ascii()
    obj = lib.rdj()
    obj = lib.tom_holland()
    obj = lib.vijay()
    obj.draw()

    • @christinashrader9733
      @christinashrader9733 2 года назад +4

      that only draw the last one, make a list like this:
      from sketchpy import library as lib
      from time import sleep
      delay = 1
      objs = [
      lib.gojo(),
      lib.api(),
      lib.flag(),
      lib.ironman_ascii,
      lib.rdj(),
      lib.tom_holland()
      lib.vijay()
      ]
      for i in objs:
      i.draw()
      sleep(delay)

    • @radhikasharma8674
      @radhikasharma8674 2 года назад

      animated Box With CSS
      ruclips.net/video/gBmx3RmThDE/видео.html

  • @youandsuccuss699
    @youandsuccuss699 2 года назад +2

    great man liked it

    • @radhikasharma8674
      @radhikasharma8674 2 года назад

      animated Box With CSS
      ruclips.net/video/gBmx3RmThDE/видео.html

  • @Corbogaminggg
    @Corbogaminggg 2 года назад +1

    App konsa hay

  • @shavergara8218
    @shavergara8218 Год назад

    do this code can run from androrid devices?

  • @Ramelzkie
    @Ramelzkie 2 года назад +1

    Why does my screen recorder on pc could not show the output of code after saving the video?

    • @radhikasharma8674
      @radhikasharma8674 2 года назад

      animated Box With CSS
      ruclips.net/video/gBmx3RmThDE/видео.html

  • @zedd2445
    @zedd2445 2 года назад

    Which theme u using in VS

    • @radhikasharma8674
      @radhikasharma8674 2 года назад

      animated Box With CSS
      ruclips.net/video/gBmx3RmThDE/видео.html

  • @stephenv7290
    @stephenv7290 2 года назад +1

    Can you please add channel for java

  • @prakashsahu887
    @prakashsahu887 2 года назад

    kon se software me code kar rahe hai bhai

  • @taranveersingh05
    @taranveersingh05 2 года назад +28

    We can actually make it a two line code.😂
    Like this :
    From sketchpy import library as lib
    Draw(lib.rdj())

  • @hefurii6073
    @hefurii6073 2 года назад +7

    I bet the first line have many info in em

  • @moazsallat3707
    @moazsallat3707 2 года назад

    Any lungoes this program

  • @exortions
    @exortions 2 года назад +38

    Guys thank you so much for this video, i had no fucking clue how to import a library in python. Back in our day, we used assembly so importing wasnt a thing. Thank you very much 🙏

    • @TechDecode
      @TechDecode  2 года назад +2

      Best comment ever 😂👍

    • @radhikasharma8674
      @radhikasharma8674 2 года назад

      animated Box With CSS
      ruclips.net/video/gBmx3RmThDE/видео.html

    • @9mo
      @9mo 2 года назад +2

      Hello, can I ask you a question?
      What application is he using to insert Python code?

    • @nonetotalk
      @nonetotalk Год назад

      ​@@9mo visual studio code

  • @yashcoder750
    @yashcoder750 2 года назад +2

    Is RDJ function 😂

  • @phenomenongaming2421
    @phenomenongaming2421 Год назад

    which python is this

  • @nemo8759
    @nemo8759 Год назад +1

    I'm beginner, but realised ' rdj ' stands for Robert Downey Jr. ❤

  • @myhumblebeginnings
    @myhumblebeginnings 2 года назад +3

    For beginner, the heavy lifting of drawing has been done in sketchpy. So, by the time we want to exhibit Iron Man, we can just take (Call) from sketchpy.

  • @rafin.
    @rafin. 2 года назад +3

    How 2 make a nuke in python:
    import thermonuclear as nuke
    pc = nuke.explode
    pc.fire
    Wow my PC is on fire wooooww

  • @rooveloft5273
    @rooveloft5273 2 года назад +3

    The fact that 3 lines of code drew RDJ's face better than I can on paper

    • @lbb2rfarangkiinok
      @lbb2rfarangkiinok 2 года назад

      Hmmm...except it took a lot more than three lines to create the .rdj() method in the lib used.

  • @sayandas3547
    @sayandas3547 2 года назад +4

    Bro what other commands it have ?

    • @TechDecode
      @TechDecode  2 года назад

      Source Code : bit.ly/Iron_Man_Python

    • @sayandas3547
      @sayandas3547 2 года назад

      @@TechDecode no no I have seen it
      I am asking what else can this sketchpy do
      What other persons it can draw
      Like vijay bts...
      What else and what the other works

    • @sub4rl
      @sub4rl 2 года назад

      @@sayandas3547 Read the docs for the library

    • @Codewithnidhi4990
      @Codewithnidhi4990 2 месяца назад

      It's not work

  • @soumeshkhuntia6906
    @soumeshkhuntia6906 2 года назад

    That's amazing

  • @HowToCode1E6
    @HowToCode1E6 2 года назад

    Amazing

  • @TheManis-z4w
    @TheManis-z4w 2 года назад

    Amazing bro

  • @a_brain
    @a_brain 2 года назад

    This is not Iron Man, this is Robert Downey Jr. and noticed something, you hacked Python which means he created that with 4 lines of code.

  • @mazengaming1211
    @mazengaming1211 2 года назад +3

    Can you create egypt flag

  • @Oye_Akshat
    @Oye_Akshat 2 года назад +2

    Not working in mine system well i installed sketchpy module also

  • @risvin9526
    @risvin9526 2 года назад +4

    How to draw own picture using python ? Please reply bro

  • @farzadkohestani4246
    @farzadkohestani4246 2 года назад +4

    Hi can you tech me how you draw this please 🙂🙏

    • @maxwellerobini1603
      @maxwellerobini1603 2 года назад +1

      That's literally what this video is about, just watch it

  • @risingdreamswithparam7990
    @risingdreamswithparam7990 2 года назад +1

    Nice

  • @deepanema8817
    @deepanema8817 Год назад

    you can find more interesting python coding videos in our channel : coders kingdom
    link:
    youtube.com/@Coders_kingdom

  • @md.al-aminhossain5655
    @md.al-aminhossain5655 2 года назад

    How its run in pycharm?

  • @prajwalsm3168
    @prajwalsm3168 2 года назад +3

    Super😍😍its really awesome i love u rdj, its working well, please more on with 'ironman' suit plzz😍

    • @radhikasharma8674
      @radhikasharma8674 2 года назад

      animated Box With CSS
      ruclips.net/video/gBmx3RmThDE/видео.html

  • @FoxyMusicOP
    @FoxyMusicOP 2 года назад +2

    You didn't even code it yourself you just imported a package and it did the work, you didn't tell us how to create, but instead, how to use a pre designed template of it

    • @farhanaditya2647
      @farhanaditya2647 2 года назад

      That's how you code in Python.

    • @FoxyMusicOP
      @FoxyMusicOP 2 года назад

      @@farhanaditya2647 he did not actually draw it

  • @sumitjaiswal2874
    @sumitjaiswal2874 2 года назад +3

    Video name-How to import a library in python

    • @radhikasharma8674
      @radhikasharma8674 2 года назад

      animated Box With CSS
      ruclips.net/video/gBmx3RmThDE/видео.html

  • @r2k447
    @r2k447 2 года назад +2

    Sketchpy error💀

  • @mahadihasan7300
    @mahadihasan7300 2 года назад +1

    Just Amaizing!!

  • @yeezybandit4261
    @yeezybandit4261 2 года назад +3

    He on x game moe 😭😂

    • @radhikasharma8674
      @radhikasharma8674 2 года назад

      animated Box With CSS
      ruclips.net/video/gBmx3RmThDE/видео.html

  • @kerala9995
    @kerala9995 2 года назад

    from sketchpy import library as lib obj = lib.rdj() obj.draw()

  • @siamkhan7808
    @siamkhan7808 2 года назад +3

    It not working 🥺

  • @visionsapkota5320
    @visionsapkota5320 2 года назад

    import pygame
    import sys
    import random
    from math import *
    pygame.init()
    width = 720
    height = 1200
    display = pygame.display.set_mode((width, height))
    pygame.display.set_caption("Balloon Shooter")
    clock = pygame.time.Clock()
    margin = 100
    lowerBound = 100
    score = 0
    # Colors
    white = (230, 230, 230)
    lightBlue = (174, 214, 241)
    red = (231, 76, 60)
    lightGreen = (25, 111, 61)
    darkGray = (40, 55, 71)
    darkBlue = (21, 67, 96)
    green = (35, 155, 86)
    yellow = (244, 208, 63)
    blue = (46, 134, 193)
    purple = (155, 89, 182)
    orange = (243, 156, 18)
    font = pygame.font.SysFont("Snap ITC", 25)
    # Balloon Class
    class Balloon:
    def __init__(self, speed):
    self.a = random.randint(30, 40)
    self.b = self.a + random.randint(0, 10)
    self.x = random.randrange(margin, width - self.a - margin)
    self.y = height - lowerBound
    self.angle = 90
    self.speed = -speed
    self.probPool = [-1, -1, -1, 0, 0, 0, 0, 1, 1, 1]
    self.length = random.randint(50, 100)
    self.color = random.choice([red, green, purple, orange, yellow, blue])
    # Move balloon around the Screen
    def move(self):
    direct = random.choice(self.probPool)
    if direct == -1:
    self.angle += -10
    elif direct == 0:
    self.angle += 0
    else:
    self.angle += 10
    self.y += self.speed*sin(radians(self.angle))
    self.x += self.speed*cos(radians(self.angle))
    if (self.x + self.a > width) or (self.x < 0):
    if self.y > height/5:
    self.x -= self.speed*cos(radians(self.angle))
    else:
    self.reset()
    if self.y + self.b < 0 or self.y > height + 30:
    self.reset()
    # Show/Draw the balloon
    def show(self):
    pygame.draw.line(display, darkBlue, (self.x + self.a/2, self.y + self.b), (self.x + self.a/2, self.y + self.b + self.length))
    pygame.draw.ellipse(display, self.color, (self.x, self.y, self.a, self.b))
    pygame.draw.ellipse(display, self.color, (self.x + self.a/2 - 5, self.y + self.b - 3, 10, 10))
    # Check if Balloon is bursted
    def burst(self):
    global score
    pos = pygame.mouse.get_pos()
    if onBalloon(self.x, self.y, self.a, self.b, pos):
    score += 1
    self.reset()
    # Reset the Balloon
    def reset(self):
    self.a = random.randint(30, 40)
    self.b = self.a + random.randint(0, 10)
    self.x = random.randrange(margin, width - self.a - margin)
    self.y = height - lowerBound
    self.angle = 90
    self.speed -= 0.002
    self.probPool = [-1, -1, -1, 0, 0, 0, 0, 1, 1, 1]
    self.length = random.randint(50, 100)
    self.color = random.choice([red, green, purple, orange, yellow, blue])
    balloons = []
    noBalloon = 10
    for i in range(noBalloon):
    obj = Balloon(random.choice([1, 1, 2, 2, 2, 2, 3, 3, 3, 4]))
    balloons.append(obj)
    def onBalloon(x, y, a, b, pos):
    if (x < pos[0] < x + a) and (y < pos[1] < y + b):
    return True
    else:
    return False
    # show the location of Mouse
    def pointer():
    pos = pygame.mouse.get_pos()
    r = 25
    l = 20
    color = lightGreen
    for i in range(noBalloon):
    if onBalloon(balloons[i].x, balloons[i].y, balloons[i].a, balloons[i].b, pos):
    color = red
    pygame.draw.ellipse(display, color, (pos[0] - r/2, pos[1] - r/2, r, r), 4)
    pygame.draw.line(display, color, (pos[0], pos[1] - l/2), (pos[0], pos[1] - l), 4)
    pygame.draw.line(display, color, (pos[0] + l/2, pos[1]), (pos[0] + l, pos[1]), 4)
    pygame.draw.line(display, color, (pos[0], pos[1] + l/2), (pos[0], pos[1] + l), 4)
    pygame.draw.line(display, color, (pos[0] - l/2, pos[1]), (pos[0] - l, pos[1]), 4)
    def lowerPlatform():
    pygame.draw.rect(display, darkGray, (0, height - lowerBound, width, lowerBound))
    def showScore():
    scoreText = font.render("Balloons Bursted : " + str(score), True, white)
    display.blit(scoreText, (150, height - lowerBound + 50))
    def close():
    pygame.quit()
    sys.exit()
    def game():
    global score
    loop = True
    while loop:
    for event in pygame.event.get():
    if event.type == pygame.QUIT:
    close()
    if event.type == pygame.KEYDOWN:
    if event.key == pygame.K_q:
    close()
    if event.key == pygame.K_r:
    score = 0
    game()
    if event.type == pygame.MOUSEBUTTONDOWN:
    for i in range(noBalloon):
    balloons[i].burst()
    display.fill(lightBlue)
    for i in range(noBalloon):
    balloons[i].show()
    pointer()
    for i in range(noBalloon):
    balloons[i].move()
    lowerPlatform()
    showScore()
    pygame.display.update()
    clock.tick(60)
    game()

  • @vireaknygaming3076
    @vireaknygaming3076 2 года назад

    Elon musk

  • @GreenSupreme555
    @GreenSupreme555 2 года назад +3

    The beats 🔥🔥🔥

  • @ankitgnawali2578
    @ankitgnawali2578 2 года назад

    How do you import such a package? Can anyone explain it to me?

    • @radhikasharma8674
      @radhikasharma8674 2 года назад

      animated Box With CSS
      ruclips.net/video/gBmx3RmThDE/видео.html

  • @fallenangelturneddevil5634
    @fallenangelturneddevil5634 2 года назад

    compiler name plzz

  • @utkarshGrows
    @utkarshGrows Год назад

    0:00

  • @KulinSoni
    @KulinSoni Год назад +1

    make Pubg in 1 line of code.

  • @vortexen3976
    @vortexen3976 2 года назад

    but you just imported a- nevermind... the comments say it all anyways

  • @UniqueEdit243
    @UniqueEdit243 2 года назад +1

    No way. That is impossible.

  • @novali490
    @novali490 2 года назад +1

    it isnt really full with code ald u import image to ur folder and uses from ur folder

  • @oofkidboi3005
    @oofkidboi3005 2 года назад

    Its not 3 lines cuz you just used a library, libraries have lines too

  • @bhishek_
    @bhishek_ 2 года назад +3

    Nice bro. By the way music name plz

    • @TechDecode
      @TechDecode  2 года назад

      Cum Check This · FETISH · Justin Snyder

    • @bhishek_
      @bhishek_ 2 года назад

      @@TechDecode Thanks Sir

    • @Flourish0x
      @Flourish0x 2 года назад

      @@TechDecode cum?..

  • @prajwalsm3168
    @prajwalsm3168 2 года назад +2

    Tom halland ,india also there😍

    • @radhikasharma8674
      @radhikasharma8674 2 года назад

      animated Box With CSS
      ruclips.net/video/gBmx3RmThDE/видео.html

  • @jcgamer1650
    @jcgamer1650 2 года назад

    no way bro. must've been hard importing a library that pretty much does everything for you 😐

  • @hansiii9903
    @hansiii9903 2 года назад +3

    Code isnt that easy, even in Python a programming laungage that People say is one of the easiest laungages to learn. So basicly the short version is he just makes code that links to This drawing and nothing else. A little like if you wanted to make code make a video but the code just opens a RUclips link. (Edit here, just looked at the video again and he is actually using Python which is extremely easy just to put a link to a little animation of a drawing making itself)

    • @TechWithSabri
      @TechWithSabri 2 года назад

      It’s not easy to make a package and deploy it to pip
      But after that you can say it is easy to use it in just 3 lines of code 😉

    • @movietimen0w
      @movietimen0w 2 года назад

      @Andri actually it's not like that, you can draw your own image with that, the image draw in this video is just a example from library module of that package

    • @movietimen0w
      @movietimen0w 2 года назад

      @Andri actually speaking, I am the creator of the module, and I know each and every line of that code, which means I can do anything with that, if u need then u can use my package, if u don't then create ur own package and use it yourself

    • @movietimen0w
      @movietimen0w 2 года назад +1

      @Andri actually this is true, but if they do this with just 3 lines of code, it gives them the motivation to learn more and even some try to learn how it works, learning and not learning is their decision, as a programmer I need to make sure my module is easy to use, and even a non programmer should be able to use it ✌

    • @farhanaditya2647
      @farhanaditya2647 2 года назад +1

      @@movietimen0w wow, are you for real?

  • @sunil3198
    @sunil3198 2 года назад

    Prog output not come

  • @TONYSTARK-uy9nv
    @TONYSTARK-uy9nv Год назад

    It's me

  • @tigerworkout47
    @tigerworkout47 2 года назад

    In library u already have another code

  • @As-cm1hf
    @As-cm1hf 2 года назад +1

    New subscriber bro

    • @TechDecode
      @TechDecode  2 года назад +1

      Thanks and welcome
      Don't forget to check our website for more python tutorials : bit.ly/Iron_Man_Python

    • @As-cm1hf
      @As-cm1hf 2 года назад

      @@TechDecode Plz help.. python 3.10 I can't use it on visual studio code plzz tell full procedure path and then everything plz plz

    • @As-cm1hf
      @As-cm1hf 2 года назад

      @Andri 😀👍👍

    • @TechDecode
      @TechDecode  2 года назад

      Follow this tutorial from the start to finish
      Link : ruclips.net/video/AKVRkB0fot0/видео.html

  • @syedaliaizaz2031
    @syedaliaizaz2031 2 года назад

    Wow 😳

  • @mubashiryaseen259
    @mubashiryaseen259 2 года назад

    U used . To import library

  • @ZQ_Gaming_Zone
    @ZQ_Gaming_Zone 2 года назад

    Wow!

  • @YahiaGameZ
    @YahiaGameZ 2 года назад +1

    Please emblem of Syria. the green

  • @arkahv
    @arkahv Год назад

    I question you if you code like this and call yourself a real programmer.

  • @nazokatmirsaidova9362
    @nazokatmirsaidova9362 2 года назад +1

    Not work

  • @Sorojitnandi
    @Sorojitnandi 2 года назад +1

    Am just jealous of you all, means how all you do such master piece like this..🥺

  • @sanjanakumari3419
    @sanjanakumari3419 2 года назад

    Ooy tune sirf programing ko command Diya library see import Karne ka

  • @suhasgowda3168
    @suhasgowda3168 Год назад

    It's not gonna works my dear frnds 😂😂he just imported a file from a computer

  • @99north52
    @99north52 2 года назад +3

    Now try this bro
    from me import myself as human
    obj =human.sapien( )
    obj .draw( )
    🤪🤪🤪🤪🤪🤪🤪🤪🤪🤪🤪🤪

    • @pleonexia4772
      @pleonexia4772 2 года назад

      How fucking asinine. Are you nine years old?

  • @animalsrelaxingvideos706
    @animalsrelaxingvideos706 2 года назад

    #ShortBUTLearnFast

  • @klaus-wd6en
    @klaus-wd6en 2 года назад +2

    Wow

  • @blessjames2006
    @blessjames2006 2 года назад

    working

  • @shreyansh5967
    @shreyansh5967 2 года назад +3

    Bro I can't Draw it please guide me

    • @TechDecode
      @TechDecode  2 года назад

      👉 Source Code: bit.ly/Iron_Man_Python

  • @xottixcvn2657
    @xottixcvn2657 2 года назад

    4 lines bruh

  • @kunalarora9063
    @kunalarora9063 2 года назад +3

    😮😮🔥🔥

  • @klaus-wd6en
    @klaus-wd6en 2 года назад +7

    My brain: Wow that is just 3 lines of code I can write it
    My heart: Just copy and paste it
    Me: Ummmmmm...... I will go with my heart XD

  • @ezekielaaron6436
    @ezekielaaron6436 2 года назад

    #Unlimated_Internet_In_Egypt

  • @lucky_6646
    @lucky_6646 2 года назад +2

    Script kiddies

  • @zaralx
    @zaralx 2 года назад +1

    scam?... I go test this...

  • @hypad1106
    @hypad1106 2 года назад

    Чел испортит library,когда приложение создано при помогши библиотеки turtle

  • @m.bhatt16
    @m.bhatt16 Год назад

    hello

  • @freeplanez
    @freeplanez 2 года назад

    next video: how to make earth in python (works in pydroid!1!1!)
    from universe import earth
    earth.shape(circle)
    earth.size(8847)
    earth.create("dinosaur, humans, animals")

  • @sh0k618
    @sh0k618 2 года назад +2

    Это программа каторую он написал эту хуйня а то что он выдвинул это вообще другой код

    • @carma2759
      @carma2759 2 года назад

      Возможно, он с гитхаба спиздил

  • @malandro2023
    @malandro2023 Год назад

    Very little value here.

  • @jamolov_xoja
    @jamolov_xoja 2 года назад

    Hoooow

  • @supravobiswas
    @supravobiswas Год назад

    🤣🤣 i am uneducated 🥲

  • @subbusparkz1240
    @subbusparkz1240 2 года назад

    Its shows error bro plz help me

  • @dreamstar1186
    @dreamstar1186 2 года назад

    Are you sure?

  • @duxeyo
    @duxeyo 2 года назад

    slow language

    • @freeplanez
      @freeplanez 2 года назад

      on android pydroid is fast for me

  • @mahmodrabee6704
    @mahmodrabee6704 2 года назад

    Dude you did nothing

  • @Prabh_cc
    @Prabh_cc 2 года назад +10

    Chapriiiiii....... 😂

  • @galitan5881
    @galitan5881 2 года назад

    uh

  • @lucasdaweb95
    @lucasdaweb95 2 года назад

    liar liar pants on fire

  • @Ruri0120
    @Ruri0120 2 года назад

    How to make Facebook using python:
    import Facebook
    facebook()

  • @MIy856
    @MIy856 2 года назад

    Sketchpy library