# ChatGPT spitting out JUCE code

**URL:** <https://forum.juce.com/t/chatgpt-spitting-out-juce-code/54402>\
**Category:** General JUCE discussion\
**Created:** [January 6, 2023, 1:45am UTC](https://forum.juce.com/t/chatgpt-spitting-out-juce-code/54402 "2023-01-06T01:45:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stephenk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/stephenk/32/15198_2.png) [@stephenk](https://forum.juce.com/u/stephenk)\
**Post date:** [January 6, 2023, 2:40pm UTC](https://forum.juce.com/t/chatgpt-spitting-out-juce-code/54402/2 "2023-01-06T14:40:15Z")

</div>

> [@GPT-chat and JUCE](https://forum.juce.com/t/gpt-chat-and-juce/53975/5):
>
> I asked ChatGPT to write that juce::MeterComponent class, thats what I got: Please write the juce::MeterComponent class for the JUCE C++ framework, which is an animated level meter. #include \<JuceHeader.h\> class MeterComponent : public juce::Component { public: MeterComponent() { setBufferedToImage(true); } void paint(juce::Graphics& g) override { const auto width = getWidth(); const auto height = getHeight(); g.fillAll(juce::Colours::blac…

---

_[View the full topic](https://forum.juce.com/t/chatgpt-spitting-out-juce-code/54402)._
