title: How to make a beautiful neon effect?
body: <p>I want to make a beautiful and juicy neon effect with the ability to control the power of light. For this, I built such code</p>
  
  <pre><code>import sys
  from PyQt5.QtWidgets import (QRadioButton, QHBoxLayout, QButtonGroup, 
      QApplication, QGraphicsScene,QGraphicsView, QGraphicsLinearLayout, QGraphicsWidget, QWidget, QLabel)
  from PyQt5.QtGui import QIcon, QPixmap
  from PyQt5.QtCore import QSize, QPoint,Qt
  from PyQt5 import QtCore, QtGui, QtWidgets
  from PyQt5.QtWidgets import *
  
  
  
  from PyQt5.QtGui import QPainter
  
  
  class Window(QWidget):
      def __init__(self):
          super().__init__()
  
          self.resize(800, 800)
  
          self.setStyleSheet('background:black;')
  
  
          mainLayout = QtWidgets.QVBoxLayout(self)
          mainLayout.setContentsMargins(0, 0, 0, 0)
  
          color_1 = '162, 162, 162,'
          color_2 = '255, 255, 255,'
          color_3 = '0, 255, 255,'
  
          d_ = 1
  
          power = int(255/100*d_)
  
          for x in range(6):
              label = QLabel(self)
  
  
              color_L = color_1
              glass_L = 255
              size_L = 60
              blut_L = 0
  
  
              label.raise_()
  
              if x &lt; 1 :
                  color_L = color_1
              elif x &lt; 2 :
                  color_L = color_3
                  glass_L = power
              elif x &lt; 3 :
                  color_L = color_2
                  blut_L = 6
                  glass_L = power
              elif x &lt; 4:
                  color_L = color_2
                  blut_L = 40
                  glass_L = power
              elif x &lt; 5 :
                  label.lower()
                  color_L = color_3
                  blut_L = 40
                  size_L = 70
                  glass_L = power
              elif x &lt; 6 :
                  label.lower()
                  color_L = color_3
                  blut_L = 150
                  size_L = 70
                  glass_L = power
  
              label.setText('test')
              label.setStyleSheet('background:rgba(0, 0, 0, 0);color:rgba({} {}); font-size:{}px;'.format(color_L, glass_L,size_L))
              label.resize(self.width(), self.height())
              label.setAlignment(Qt.AlignCenter)
  
              self.effect = QtWidgets.QGraphicsBlurEffect(blurRadius=blut_L)
              label.setGraphicsEffect(self.effect)
  
  if __name__ == '__main__':
      app = QApplication(sys.argv)
      w = Window()
      w.show()
      sys.exit(app.exec_())
  </code></pre>
  
  <p>but the code is too cumbersome. And the light turned out to be too unnaturalistic,</p>
  
  <p><a href="https://i.stack.imgur.com/GfmI6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GfmI6.png" alt="enter image description here"></a></p>
  
  <p>it looks especially bad if you indicate a weak light intensity.</p>
  
  <p>Are there any better options to make a neon effect? or why does he look so bad?</p>